FractalWalk
Technical User
I have several macros that I use all the time in Excel and so I have mapped them to function keys. However, I want to be able to toggle that ability on and off so that I can access the "original" function of those keys when I need to.
So I have built a menu with drop downs to "Turn on" and "Turn off" my functions. Here is an example of the code for each:
That works great, but once I turn the functions off, how do I restore them to the original functions? If I close the workbook and re-open that resets them but I want a way to do that without closing out. Any thoughts?
So I have built a menu with drop downs to "Turn on" and "Turn off" my functions. Here is an example of the code for each:
Code:
Public Sub Macro_Turn_On_Fkeys()
Application.OnKey "{F1}", "Macro_VLookup"
End Sub
Public Sub Macro_Turn_Off_Fkeys()
Application.OnKey "{F1}", ""
End Sub
That works great, but once I turn the functions off, how do I restore them to the original functions? If I close the workbook and re-open that resets them but I want a way to do that without closing out. Any thoughts?