Like this ?
Sub Alt()
SendKeys "%{TAB}"
End Sub
Juan Pablo G.
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.
Hello,
You can use something like AppActivate to return focus back to Excel e.g.
Sub OpenCalc()
x = Shell("CALC.EXE", vbNormalNoFocus)
AppActivate "Microsoft Excel"
End Sub
HTH,
D
Thanks, that works great, & much easier than what i was trying