SendKeys to emulate ALT+TAB, TAB, TAB

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I use VBA Sendkeys Method to achieve the below?

Using the keyboard, while holding down ALT key, I need to press TAB for 3
times in order to toggle to the 4th Window.

All below attempts failed, even if I add Application.Wait on the next line:
Application.SendKeys ("%{TAB}{TAB}{TAB}"), True
Application.SendKeys ("%{TAB}{TAB}{TAB}"), False
Application.SendKeys ("%{TAB}%{TAB}%{TAB}"), True
Application.SendKeys ("%{TAB}%{TAB}%{TAB}"), False

Thanks alot
 
Sorry guys. I got it with "Application.SendKeys ("%{TAB 3}"), True"
It seems like F1 Help did better than my 2 reference books.
 
Back
Top