always asks to save Normal.dot

J

Jon Kruger

I'm using Word automation to add a custom toolbar to Word. Now I frequently
get asked to save changes to Normal.dot when I close Word. I've read that my
adding of a toolbar affects Normal.dot.

Is there a way to add a toolbar without getting a message asking me to save
Normal.dot? I'm adding a temporary toolbar (i.e. it goes away when you close
the document).
 
C

Cindy M.

Hi =?Utf-8?B?Sm9uIEtydWdlcg==?=,
I'm using Word automation to add a custom toolbar to Word. Now I frequently
get asked to save changes to Normal.dot when I close Word. I've read that my
adding of a toolbar affects Normal.dot.

Is there a way to add a toolbar without getting a message asking me to save
Normal.dot? I'm adding a temporary toolbar (i.e. it goes away when you close
the document).
You can add the toolbar to a file other than Normal.dot (see
CustomizationContext). But in any case you'd get the prompt. However, you can
suppress the prompt (as long as the *user* doesn't do anything to affect
Normal.dot, such as recording a macro) by putting the following statement at the
end of your startup code:
NormalTemplate.Saved = True

(This is like telling Word it's not dirty.)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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