If the sendkeys solution is problematic for you, and you want a custom solution that isn't, then you'll have to post more info and hope that someone has the time to write something for you...
_________________________
We all live in a Yellow Subroutine...