View Single Post
 
Old 09-14-2014, 10:36 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote