![]() |
#2
|
|||
|
|||
![]()
You certainly can store macros and hotkeys both in documents.
If your macros are in your documents and you store your hotkey globally but the macro is in the same module with the same name in each document, the hotkey should trigger the macro in the document rather than a globally stored macro. See:
If I were doing this, though, I would not put a separate macro in each document, but rather use a document variable in the document and have a central macro that performs the action and varies according to the presence and value of that variable. Chris Woodman's Keyboard Shortcut Organizer contains a utility to let you read, set, and modify document variables from within the user interface, without going to the vba editor. Chris Woodman's Keyboard Shortcut Organizer |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Run macros when document opens | THH4929 | Word VBA | 2 | 05-27-2018 01:26 AM |
![]() |
cepdance | Word VBA | 6 | 01-04-2017 08:18 AM |
![]() |
Cardinal2 | Word | 1 | 11-30-2015 07:42 PM |
![]() |
rsrasc | Word VBA | 4 | 10-31-2014 05:10 AM |
![]() |
jimbassett | Excel | 2 | 02-08-2010 08:06 AM |