(Re-)assigning VBA Editor Shortcut Keys

Dr. Demento

Well-known Member
I understand how to assign shortcut keys in Excel, but I'm coming up blank on how to run a Sub while in the VBE using a shortcut key.

Thanks y'all.
 

Dr. Demento

Well-known Member
Apologies for the late response. My issue is that I want to program a shortcut key within VBE to run a custom sub; given your example, I could conceivably (recognizing this would be a terrible idea) re-program F5 to run another custom sub instead of the active one.

I know of Application.OnKey for assigning macros in the Excel environment, I just want to do the same within the Visual Basic Environment.
 

Some videos you may like

This Week's Hot Topics

Top