Archive of Mr Excel Message Board
Back to Excel VBA archive index
Back to archive home
sendkeysPosted by jason on January 11, 2002 11:16 AM
Can I use sendkeys to perform AlT Tab for windows?
|Check out our Excel VBA Resources
That is ALT TAB...Posted by jason on January 11, 2002 11:17 AM
Re: That is ALT TAB...Posted by Juan Pablo G. on January 11, 2002 11:20 AM
Like this ?
Juan Pablo G.
Re: That is ALT TAB...Posted by Jason on January 11, 2002 11:34 AM
That doesnt seem to do anything.
I am trying to change focus from an application started from VB, back to the worksheet that executed the VB shell command.
The equivlent of pressing alt tab.
Re: That is ALT TAB...Posted by DK on January 11, 2002 12:07 PM
You can use something like AppActivate to return focus back to Excel e.g.
x = Shell("CALC.EXE", vbNormalNoFocus)
AppActivate "Microsoft Excel"
Thanks, that works great, & much easier than what i was tryingPosted by Jason on January 14, 2002 5:00 AM
This archive is from the original message board at www.MrExcel.com.
All contents © 1998-2004 MrExcel.com.
Visit our online store
to buy searchable CD's with thousands of VBA and Excel answers.
Microsoft Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.