Normal.dot changed when opening word..... WHY??

My addinn is doing something strange...

When I open word - doing nothing - and try to close word I get a question about saving changes made to Normal.dot. It seems like my addinn (a button offering the user to save the document in another archiving system) markes the normal.dot as changed...

Any suggestions

Sometimes it also seems like it does the same thing if I open an existing document...

neoret



Answer this question

Normal.dot changed when opening word..... WHY??

  • hansgielen

    Adding toolbars/buttons can do this (something your addin probably does). It could be something another addin is doing. If this is a new installation of Word that's never been started up before, it could also happen.

    You can try adding a line like application.NormalTemplate.Saved = True to tell Word to ignore any changes made up to that point. The question is, where is the best place to put it, keeping in mind that it could mean you're removing user customizations if you add it in after your initialization code.



  • Bernd Fredder

    Could I put the line your suggesting in the connect - onstartupcomplete
  • free_loaded

    Theoretically, you can put it anywhere, as long as you have access to the Word application :-) This is certainly where I'd try, to begin with.

    Whether it's going to have the effect you want depends on what your code does - this means you may have to do some testing to find out the optimal place to include it for your particular addin.



  • Normal.dot changed when opening word..... WHY??