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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configuring Command Buttons for use with Alt + letter

Status
Not open for further replies.

wordperfectconvert

Technical User
Feb 16, 2005
18
US
I have created a series of user boxes that come up in the process of creating a letter template. Both user boxes have "OK", "Skip this step" and "Cancel" buttons. I have found that I often want to either skip or cancel.

How do I program the command buttons so that I can hit Alt + "s" to use skip step or can hit Alt + "c" to cancel. Thank you for any help.

AN OPEN THANK YOU: I am a convert from wordperfect an am new to VBA. I am slowly getting it, but I must thank all of you that have ever posted an answer here because it has been extremely helpful. Thanks.
 
Have you tried &Skip and &Cancel for the button's caption ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
If you're using UserForms, I think UserForm controls have a "Accelerator" property. Place S and C respectively in this property for the buttons (if you want one of them to act on Enter and one on Escape, you can play with the Default and Cancel properties)

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top