Word Addon does not work once you close down a document and re-open a new one RRS feed

  • Question

  • Here are repro steps:

    1. Create an Application-level Hello-world Addon in Word (or Excel or Powerpoint)

    2. Open a new document

    3. Close down the document (the document, not the Office Application itself)

    4. Open a new document

    5. Notice, that the addon no longer works

    Is there a way around this?

    Monday, July 23, 2012 4:43 PM


  • Your AddIn should still be loaded after closing a document / opening a new one.

    Please go to Options > Add-Ins and see if your AddIn is listed there after closing a document/opening a new one.

    If it is listed as an active AddIn, maybe it seems like it's not working because you've placed code in the 'On Startup' or 'On Connection' event, which only fire when the AddIn is first loaded (with default load behavour, that will happen when the Office application is first started up).

    If you want code to be run every time a new document is opened, you need to listen to Word events, and handle the DocumentOpen event.

    • Marked as answer by Zoldello Friday, July 27, 2012 11:40 PM
    Monday, July 23, 2012 9:45 PM