Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2007

Tip: Looking for answers? Try searching our database.

simulating a key press (Alt + Down arrow)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
OTWarrior - 23 Aug 2007 10:52 GMT
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?
OTWarrior - 23 Aug 2007 15:53 GMT
Or even just the code that opens the drop down box???
OTWarrior - 28 Aug 2007 09:52 GMT
Doug Robbins - Word MVP - 28 Aug 2007 10:56 GMT
Use the command

SendKeys "%{down}"

in a macro run on entry to the formfield.
Signature

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

>I have a drop down form field, and I want it to automatically down on when
> tabbed into it/on focus.
[quoted text clipped - 5 lines]
> Simply put, my question is how do I code a button press or combination of
> simulatious button presses?
OTWarrior - 28 Aug 2007 11:49 GMT
>Use the command
>
>SendKeys "%{down}"

That was exactly what I was after, thank you :)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.