simulating a key press (Alt + Down arrow)

  • Thread starter OTWarrior via OfficeKB.com
  • Start date
O

OTWarrior via OfficeKB.com

I have a drop down form field, and I want it to automatically down on when
tabbed into it/on focus.
You can call a macro on enter, so I was wanting to know how to auto drop down
the list, or rather, simulate the key pressing of Alt and Down arrow (as
these 2 together would normally drop down the list)


Simply put, my question is how do I code a button press or combination of
simulatious button presses?
 
D

Doug Robbins - Word MVP

Use the command

SendKeys "%{down}"

in a macro run on entry to the formfield.
--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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