SendKeys to emulate ALT+TAB, TAB, TAB

E

Edmund

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
 
E

Edmund

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

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