#1
|
|||
|
|||
Autostart from opening documents
If i will rename macros to "AutoOpen" then it will be open from the start when i open doc, right? Then which trick should i do that a few macroses which i want to autorun will not have the same names?
|
#2
|
||||
|
||||
AutoExec and AutoExit are Auto macros that can be used in a global template, but AutoOpen and AutoClose won’t fire in a global template unless the document being opened or closed happens to be based on that global template. The macros discussed in your other thread (https://www.msofficeforums.com/word-...-position.html) are Document_Open and Document_Close macros that work in a similar way to AutoOpen and AutoClose macros, but can't be used in a normal code module - which is where you went wrong with that code.
You cannot have more than one macro with the same name in a module, regardless of what that macro does or how it is run.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Excel Documents not opening | SusiB | Excel | 3 | 10-12-2014 11:31 PM |
Opening 2014 documents | Barryjt | Word | 12 | 05-04-2014 04:38 AM |
Opening two documents in the same window | NMRed1000 | Word | 1 | 02-16-2014 08:44 AM |
All my word documents are opening as blank. | Omni1 | Word | 1 | 07-14-2011 04:23 PM |
Not all documents opening | wchalverson | Office | 0 | 08-24-2010 04:55 PM |