PDA

View Full Version : AutoOpen macro



WallIT
06-30-2014, 09:24 AM
Hi,

We are using Word 2010 at our company and have a global.dotm addin which is loaded on startup. I want to fire a macro for when ANY document is opened (either from File > Open, the 'recents' menu, or from double-clicking in Windows Explorer).

I have experimented with creating modules called AutoExec and AutoOpen, as well as routines called the same with no success.

Is it not working because the template is loaded as an addin? is there anyway around this?

Best regards

gmaxey
06-30-2014, 09:45 AM
Try putting your AutoOpen macro in your User's Normal.dotm. There they will act globally.

WallIT
07-01-2014, 01:48 AM
Try putting your AutoOpen macro in your User's Normal.dotm. There they will act globally.

Thanks Greg. Is there really no alternative?

Would this work? http://word.mvps.org/faqs/macrosvba/pseudoautomacros.htm (see end of article about Word 2000 onwards)

Kind regards