Solved

Create underline shortcuts for ALT + Letter keys in VBA

Posted on 2007-11-18
1
1,194 Views
Last Modified: 2012-06-22
Hi guys,

In VB you are able to add the "&" symbol before a letter to enable the ALT + Letter combination.
Are you able to do this in VBA? If so, how?

For example, I have an Option button with the label "Choose me": using "&Choose me" works in VB, it underlines the "C" and allows you to press the ALT+C buttons to select it. I can't get this to work in VBA, I'm looking for a way to do this.
I'm writing this in Outlooks built in VBA editor.

Thanks.
0
Comment
Question by:gamm
1 Comment
 
LVL 76

Accepted Solution

by:
David Lee earned 125 total points
ID: 20314549
Hi, gamm.

Look for the Accelerator property.  I don't remember off-hand which controls have that property, but it's what you're looking for.  One note though, it doesn't underline the accelerator key.  The user has to know that ALT+Accelerator is the shortcut.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now