ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   keyboard shortcut question (https://www.excelbanter.com/excel-worksheet-functions/70450-keyboard-shortcut-question.html)

Bri

keyboard shortcut question
 
I have a number of keyboard shortcuts. Lets say <ctrl<shiftA runs code
in modA, <ctrl<shiftB runs code in modB, etc.

I'd prefer to collect all of this code in one module, say modShortcuts, but
still have the keyboard shortcuts work.

Is this possible?

TQ
Bri



jennifer

keyboard shortcut question
 
How about 'calling' the procedure using the shortcut?

For example in the module containing all your shortcuts

sub macroname()
'Keyboard Shortcut: Ctrl+Shift+O
Call MacroYouWantToAssignToctrlshiftO
end sub

sub macroname()
'Keyboard Shortcut: Ctrl+Shift+X
Call MacroYouWantToAssignToctrlshiftXend sub


"Bri" wrote:

I have a number of keyboard shortcuts. Lets say <ctrl<shiftA runs code
in modA, <ctrl<shiftB runs code in modB, etc.

I'd prefer to collect all of this code in one module, say modShortcuts, but
still have the keyboard shortcuts work.

Is this possible?

TQ
Bri





All times are GMT +1. The time now is 04:28 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com