Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2007

Tip: Looking for answers? Try searching our database.

Prevent macros that add menus from updating normal.dot

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Microsmith - 31 Jul 2007 18:04 GMT
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
Microsmith - 31 Jul 2007 18:32 GMT
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

> Hello all,
>
[quoted text clipped - 16 lines]
>
> Microsmith

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.