shortcut macro keys

  • Thread starter Thread starter shasta
  • Start date Start date
S

shasta

when u create a macro it gives u an option to have a shortcut key...i
it possible to have the return key as a shortcut
 
One way:

Public Sub test()
Application.OnKey "{RETURN}", "MyReturnMacro"
End Sub

Public Sub MyReturnMacro()
MsgBox "You pressed Return"
End Sub

You can put the Application.OnKey call in your Personal.xls
Workbook_Open sub
 

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