Sendkeys VBA and command line

B

Bobsa

I'm trying to control an object instantiated from Excel with VBA and
sendkeys to it. But cannot get it to work.

All that happens when I step through it in the VB Editor is that the
sendkeys data are sent to the VBEditor window.

I can fire up a window cmd.exe and activate it with AppActivate but
nothign else goes to it. Anyone help on this one??

Bobsa
 
B

Bob Phillips

Sendkeys will always send to the active window. When you are in the VBE,
that is the active window, that is where they go. Nothing you can do about
that.

Show the code and tell us what is required and what you get.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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