Solved

Create underline shortcuts for ALT + Letter keys in VBA

Posted on 2007-11-18
1
1,195 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Outlook Free & Paid Tools
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
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 lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

911 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

23 Experts available now in Live!

Get 1:1 Help Now