Can Fkeys be used similiar to _beforedoubleclick(

D

Dave Peterson

You can assign a macro to any of the F keys, if that's what you're asking.

For instance:

Option Explicit
Sub EnableShortCuts()
Application.OnKey "{F10}", "doMac1"
Application.OnKey "{F11}", "doMac2"
Application.OnKey "{F12}", "doMac3"
End Sub
Sub ResetShortCuts()
Application.OnKey "{F10}"
Application.OnKey "{F11}"
Application.OnKey "{F12}"
End Sub
Sub doMac1()
msgbox "From Mac1"
End Sub
Sub doMac2()
msgbox "From Mac2"
End Sub
Sub doMac3()
msgbox "From Mac3"
End 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

Similar Threads

sending attachement 1
Delete rows in worksheet 4
Every Other Row 2
numeric amount in word figers 2
User Defined Function 2
changein text to all caps 6
help with division 1
Shirtcut for return to the 6

Top