Hello,
I recently created a Print Layout macro which I assigned to the following shortcut:
However, when I go back to the spreadsheet and press Ctrl+P (for the print preview), Excel automatically runs my Macro!!!
Why is this happening? In fact, if I go to Macros --> PrintLayouts, I see that Excel has assigned the shortcut Ctrl+P to my macro...
Thanks
I recently created a Print Layout macro which I assigned to the following shortcut:
VBA Code:
Application.OnKey "^%{l}", "PrintLayouts"
However, when I go back to the spreadsheet and press Ctrl+P (for the print preview), Excel automatically runs my Macro!!!
Why is this happening? In fact, if I go to Macros --> PrintLayouts, I see that Excel has assigned the shortcut Ctrl+P to my macro...
Thanks