Consulting

Results 1 to 3 of 3

Thread: AutoOpen macro

  1. #1

    AutoOpen macro

    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

  2. #2
    Microsoft Word MVP 2003-2009 VBAX Guru gmaxey's Avatar
    Joined
    Sep 2005
    Posts
    3,340
    Location
    Try putting your AutoOpen macro in your User's Normal.dotm. There they will act globally.
    Greg

    Visit my website: http://gregmaxey.com

  3. #3
    Quote Originally Posted by gmaxey View Post
    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/...automacros.htm (see end of article about Word 2000 onwards)

    Kind regards

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •