how do you say in VBA?

  • Thread starter Thread starter Guest
  • Start date Start date
Hi,
If your trying to set a key to run a Macro. Select "Tool" then select
"Macro" Then select "Macro" a list of macro's should be displayed. select
which macro you want to run then select the "Option's" and assign it to a
key (Alpha). click OK. then close out. When you want to run the Macro you
can press "Cntl" and "q" this will excute the Macro.(assumed you assigned
"q")
 
OnKey will do what you want - see VBA help for details

OnKey "1","MyMacro"
 
Great it works, but how does excel tell the difference between the number one
above the keys, and the number one on the numeric keypad?
 

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

Similar Threads


Back
Top