Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Sendkeys VBA and command line

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Sendkeys VBA and command line

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)

"Bobsa" wrote in message
om...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run Macro from Command line Phil Smith Excel Discussion (Misc queries) 1 July 21st 07 06:35 PM
Q: command line in OE JIM.H. Excel Discussion (Misc queries) 0 May 30th 05 10:48 PM
SendKeys command not focusing on the correct open program mjwillyone[_12_] Excel Programming 0 December 30th 03 04:06 AM
Command Line Arguments Michael[_20_] Excel Programming 4 November 21st 03 06:01 PM
DOS Command Line Chris Excel Programming 5 October 2nd 03 02:06 PM


All times are GMT +1. The time now is 10:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"