• Generic comments about a Word template (All VBA versions)

    Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » Generic comments about a Word template (All VBA versions)

    Author
    Topic
    #407899

    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.

    Viewing 3 reply threads
    Author
    Replies
    • #856708

      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 🙂

      • #856734

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

      • #856735

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

    • #856709

      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 🙂

    • #856948

      If you don’t like it, uninstall PDFMaker. laugh

      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…

    • #856949

      If you don’t like it, uninstall PDFMaker. laugh

      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…

    Viewing 3 reply threads
    Reply To: Reply #856734 in Generic comments about a Word template (All VBA versions)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel