Solved

Create underline shortcuts for ALT + Letter keys in VBA

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Large Outlook files lead to various unwanted errors and corruption issues. Furthermore, large outlook files can also make Outlook take longer to start-up, search, navigate, and shut-down. So, In this article, i will discuss a method to make your Out…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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