Solved

Create underline shortcuts for ALT + Letter keys in VBA

Posted on 2007-11-18
1
1,200 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
adding "ungroup sheets" to existing vbs code 5 57
Exchange 2013 weird behavior 7 73
Email Send REcieve Problem on TMG 2010 6 62
Lost emails in Outlook 18 40
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

733 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