Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the key name for {Alt} in the SendKey command?

Status
Not open for further replies.

crrrazydan

Programmer
Jul 27, 2000
34
US
I want to use the SendKeys command, which I already know how to use, to send the Alt key. Kind of like SendKeys "{Tab}", only with the Alt keys. The problem is that there's two Alt keys. I tried "{AltLeft}" and stuff like that but it doesn't seem to work.
 
VB help says the "%" character stands for the ALT key. Maybe it doesn't seem to be working for you because your current form has focus. Try placing a list of menu items (with submenus) on the form and then do a Sendkeys "%F". Assuming you have a &File menu item, its submenus will be exposed.

There's a lot of interesting information in the MSDN documentation you purchased with VB.

VCA.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top