Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
job job is offline
external usenet poster
 
Posts: 65
Default Add shortcut key or hot key via vba

Anyone know how to programatically add hotkeys to existing subs via vba?


  #2   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Add shortcut key or hot key via vba

you could use the OnKey method eg.


application.OnKey "^{a}", "yoursub"

will assign the key shortcut crtl+a to the sub "yoursub"

"Job" wrote:

Anyone know how to programatically add hotkeys to existing subs via vba?



  #3   Report Post  
Posted to microsoft.public.excel.programming
job job is offline
external usenet poster
 
Posts: 65
Default Add shortcut key or hot key via vba

Thanks Ben!
"ben" wrote in message
...
you could use the OnKey method eg.


application.OnKey "^{a}", "yoursub"

will assign the key shortcut crtl+a to the sub "yoursub"

"Job" wrote:

Anyone know how to programatically add hotkeys to existing subs via vba?





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
shortcut has change or move so this shortcut can not open bakerstreet Excel Worksheet Functions 2 April 2nd 10 01:21 PM
Shortcut to : key Margaret RM Excel Discussion (Misc queries) 4 July 12th 07 03:27 AM
shortcut Dev Excel Discussion (Misc queries) 1 March 7th 07 07:05 PM
Shortcut into Name box Bonnie Excel Discussion (Misc queries) 2 March 4th 05 03:27 PM
Shortcut key cottage6 Excel Programming 1 October 19th 04 06:05 PM


All times are GMT +1. The time now is 03:31 PM.

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

About Us

"It's about Microsoft Excel"