Macros can have keyboard shortcuts assigned to them by using the shortcut keyword argument to xl_macro
.
Alternatively, these keyboard shortcuts can be assigned, or overridden, in the config file.
Shortcuts should be one or more modifier key names (Ctrl, Shift or Alt) and a key, separated by the ‘+’ symbol. For example, ‘Ctrl+Shift+R’. If the same key combination is already in use by Excel it may not be possible to assign a macro to that combination.
The PyXLL developer macros (reload and rebind) can also have shortcuts assigned to them.
[SHORTCUTS]
pyxll.reload = Ctrl+Shift+R
module.macro_function = Alt+F3
See Keyboard Shortcuts for more details.