Trying to Send a Keystroke to a specific Window

J

Jason Zischke

Hi all

I trying to send a keystroke to a specific window the first command goes all
right but it doesn't send the key. Below is my code.

appactivate "Microsoft Excel - My Book.xls"
SendKeys "{ENTER}"

Jason
 
C

Chip Pearson

I would very strongly recommend that not use SendKeys, especially with an
application like Excel that supports automation. If you describe what you
need to accomplish, you will likely get a better approach that SendKeys.

--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2008
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)
 

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