avoid save normal.dot on closing word

J

Jos reulen

I add a toolbar on startup of Word (depending on the identification of the user) and remove it at Word exit using a VBA
macro. This to enable a user to use only specific toolbars. Now I get the
message normal.dot has been changed even when there are no changes made to the actual word-document (and thereupon several windows to store or not normal.dot)
I would like to avoid the appearance of this message and the succeeding windows when only the toolbars are added and removed. how can this be done in VBA code.
 
P

Peter Hewett

Hi

Add the following code, preferably after you've finished doing your toolbar
thing:
NormalTemplate.Saved = True

NormalTemplate is a property of the application object so you don't need to
define it.

HTH + Cheers - Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top