How does one create a VBA keyboard shortcut in Excel?
I DO NOT want to use the GUI. I want to do it programatically.
Is that possible?
Is the OnKey function meant to be part of the Sub it is accessing?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should write a seperate
Subto set the Keys you require usingThis sub can then be run in a variety of ways, eg run from
Alt-F8menu, run from the VBA IDE, assigned to a command bar button, of run from from theWorkbook_Openevent