SendKeys syntax problem

V

VBAvirgin

Can anyone please help.
I am performing a search, that part of the code is working fine.
When my result cell is activated, I would like to select both it, an
the cell to the immediate right of it.
I've tried using SendKeys, but I'm having difficulties with the synta
obviously.

Code
-------------------
Application.SendKeys +("{RIGHT}"
-------------------

I'm using the "plus"sign "+" for the SHIFT key to hold and select, bu
I'm obviously writing the {RIGHT} portion of the code incorrectly, as
get a run time error.
Any assitance would be much appreciated. This is driving me nuts. Than
in Advance
 
B

Bob Phillips

Maybe try

application.sendkeys ("+{RIGHT}")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
V

VBAvirgin

Thank You Bob for your quick & helpful response. I knew it was just
what goes where thing that was bogging me down. Thanx again m
friend.:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top