Hello all,

I've written macros that create a menu list on the menu bar, modified some
shortcut menus, and adds a toolbar, all custom designed to run other macros
that I have written. I saved the document as a .dot template and stored in
the word start-up directory. All menus are created fine. The problem is,
when I load it as a global template, Word saves all the menu modifications to
normal.dot. I've written macros to delete the menus on exit, but they still
exist in the normal.dot file. This is a problem particularly with the toolbar
menu which gets duplicated in normal.dot everytime word is started with the
gloabl template I designed.

Is there a way to prevent Word from modifying the normal.dot file when I run
macros that create custom menus, or is there another way to prevent this
problem? The problem persists with Word 2000 and 2003. I tried deleting the
normal.dot file in case it was corrupted, but that didn't fix the problem.

Thanks in advance,

Microsmith

RE: Prevent macros that add menus from updating normal.dot by Microsmith

Microsmith
Tue Jul 31 12:32:01 CDT 2007

Well, wouldn't you know, after spending days trying to solve this I figure it
out shortly after I posted this message. Here's the solution.

Use the VBA command customizationcontext to point to the template in the
Word Startup folder instead of the Normal.dot file.

I found this at the following microsoft support page:

http://support.microsoft.com/kb/873017/en-us?spid=2530&sid=63

Regards,

Microsmith

"Microsmith" wrote:

> Hello all,
>
> I've written macros that create a menu list on the menu bar, modified some
> shortcut menus, and adds a toolbar, all custom designed to run other macros
> that I have written. I saved the document as a .dot template and stored in
> the word start-up directory. All menus are created fine. The problem is,
> when I load it as a global template, Word saves all the menu modifications to
> normal.dot. I've written macros to delete the menus on exit, but they still
> exist in the normal.dot file. This is a problem particularly with the toolbar
> menu which gets duplicated in normal.dot everytime word is started with the
> gloabl template I designed.
>
> Is there a way to prevent Word from modifying the normal.dot file when I run
> macros that create custom menus, or is there another way to prevent this
> problem? The problem persists with Word 2000 and 2003. I tried deleting the
> normal.dot file in case it was corrupted, but that didn't fix the problem.
>
> Thanks in advance,
>
> Microsmith
>
>