Results 1 to 4 of 4
  1. #1
    3 Star Lounger
    Join Date
    Mar 2003
    Location
    Elkins Park, Pennsylvania, USA
    Posts
    325
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Custom Menus in Startup Templates (Word XP)

    Hi again. I'm hoping to get input from you all regarding customizing menus. Here's the scenario:

    I have a Startup template that is used by a small group (we'll call that group Word Processing, for lack of a more politically incorrect term.) I also have a Document template that I created for 1,000+ users to create and use with a certain type of document. The Document template has procedures in it that I'd like to expose only to the first, smaller group (Word Processing). In practice, I'd like only those users with the Startup template to be able to access certain commands, so I'd like some of the procedures from the Document template to be listed in a menu only found in the Startup template.

    (I'm not really going to worry about total security, or I wouldn't have stored those procedures in the Document template in the first place. This is more about practicality and minimizing confusion.)

    Now, here's my dilemma: do I customize the Startup template to call procedures from the Document template (presumably by temporarily loading the Document template as an Add-in and pointing to its macros as I customize the Startup template's menus)? Or do I customize the Startup template's menus (while it's loaded) and save the changes in the Document template? My worry is that there will come a time when the Startup template will decide that it doesn't like pointing to procedures that aren't always there (i.e. when documents based on the other template are loaded) or, similarly, that the Document template will have problems always trying to customize a menu that's only in the Word Processing Startup template.

    Or should I look at this from a different angle?
    <font face="Comic Sans MS">That's what you do in a herd; you look out for each other!</font face=comic> - Mike

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 28 Times in 28 Posts

    Re: Custom Menus in Startup Templates (Word XP)

    Adding menu items to a menu in the Startup template based on code in the Document template is going to be tricky. It would be a lot easier to store the menu customizations in the Document template itself, and check in the code behind the extra menu items whether the Startup template is loaded (If AddIns("...").Installed = True Then ...). Otherwise, you'd have to keep track of opening and closing documents based on the Document template, and of activating documents based on different templates - a lot of work that Word automatically does for you if the menu customizations are in the Document template.

  3. #3
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Custom Menus in Startup Templates (Word XP)

    Not sure (since I've never had to deal with it), but when the document template loads, the (global) startup template should be already active.
    So I guess you could make the document template show certain toolbars or menu items, but only if the startup template is among Application.Templates? And hide them again when it closes...

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16> Klaus

  4. #4
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Custom Menus in Startup Templates (Word XP)

    I guess Hans got it right. I didn't see his post in time, and guess my approach would run into too many problems.

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16> Klaus

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •