Add shortcut key or hot key via vba

  • Thread starter Thread starter Job
  • Start date Start date
J

Job

Anyone know how to programatically add hotkeys to existing subs via vba?
 
you could use the OnKey method eg.


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

will assign the key shortcut crtl+a to the sub "yoursub"
 
Thanks Ben!
ben said:
you could use the OnKey method eg.


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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top