Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default Possible to hotkey/underscore a VB button on a worksheet?

Hello,

Is it possible to hotkey a visual basic button on a worksheet? Like in MS
Access you place an ampersand (&) before the character to hotkey

&Run Report

would underscore the R in Run. So when you press Alt-R that would activate
the button that says "Run Report". Is this doable on a button in a
worksheet? How to do this?

Thanks,
Rich
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Possible to hotkey/underscore a VB button on a worksheet?

You cannot create a hotkey to a button but you can create a hotkey to a
macro. Check out the OnKey method in VB help.

--
Jim
"Rich" wrote in message
...
| Hello,
|
| Is it possible to hotkey a visual basic button on a worksheet? Like in MS
| Access you place an ampersand (&) before the character to hotkey
|
| &Run Report
|
| would underscore the R in Run. So when you press Alt-R that would
activate
| the button that says "Run Report". Is this doable on a button in a
| worksheet? How to do this?
|
| Thanks,
| Rich


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
underscore in functions westronwynde Excel Worksheet Functions 4 May 6th 23 11:45 AM
underscore in email address covered by hyperlink underscore Chuck Bowser Excel Discussion (Misc queries) 1 April 22nd 09 05:47 PM
How can I double underscore in excel? KennyG Excel Worksheet Functions 2 December 20th 06 08:46 PM
how can i make a measurment with and underscore under the second diane Excel Discussion (Misc queries) 4 April 1st 06 07:25 AM
Underscore character _ Todd Huttenstine[_2_] Excel Programming 1 November 25th 03 05:08 AM


All times are GMT +1. The time now is 05:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"