Results 1 to 5 of 5
  1. #1
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Generic comments about a Word template (All VBA versions)

    What do folkes think of the following comments about a template XXX.dot?
    ----------------------------------------------------------------------------
    I was looking at the latest version of the XXX template. It sure has changed since I last examined the critter a few years ago. Here are two comments.

    1. The template is modifying the Normal template.

    Applications should not unnecessarily modify the Normal template. In this case, I do not see any reason to modify the Normal template as the XXX template can contain all necessary customizations.

    In addition, more knowledgeable users learn to minimize the changes to the Normal template and make the Normal template read-only, as well as requiring a prompt to be notified when changes are made to the Normal template. This also helps to reduce damage from any virus.

    The XXX template causes the prompt to save the Normal template to be issued very time Word is exited, which is of concern to users wanting to see the prompt only when unexpected changes are made to the Normal template.

    This problem is best solved by modifying the template's code so that the CustomizationContext property is used to assure that modifications are made only in XXX.DOT and not in the Normal template.

    A less desired solution, when the code starts running, is to immediately save the Saved property of the Normal template in a variable and then restore that property value in the Document_Close event of the XXX template.

    2. The template is re-arranging the user's toolbars.

    Templates should never re-arrange the user's environment without offering a way to restore the environment.

  2. #2
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    Brussels, Brussel, Belgium
    Posts
    159
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Generic comments about a Word template (All VBA versions)

    these are all sane arguments of course. a template should be as selfcontaining as possible, whilst still allowing user customization. setting the normal template to read only does limit user customization, so in this sense comments 1 & 2 are slightly contradictory if one really wants to start nitpicking that is :-)

  3. #3
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Generic comments about a Word template (All VBA versions)

    Tis consistent as it is the user who is making the Normal template read-only to prevent unwanted customizations.

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Generic comments about a Word template (All VB

    If you don't like it, uninstall PDFMaker. <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15>

    But seriously, I think these are both valid issues. I wrote some code for Outlook to store and restore the position of toolbars because we have an ill-behaved add-in that I have no choice but to use. Obviously not as good as having it work correctly in the first place, but...

  5. #5
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Generic comments about a Word template (All VB

    I'm not referring to PDFMaker, that poses no such problems due to the solution in http://www.standards.com/OhMyWord/VBABugsF...s.html#PDFMaker.

Posting Permissions

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