Jay
Sun Jan 09 22:35:28 CST 2005
On Sun, 9 Jan 2005 17:50:57 -0500, "Howard Kaikow"
<kaikow@standards.com> wrote:
>Due to sloppily written 3rd party apps/add-ins/macros, many users are
>troubled by the message asking whether they want to save changes to the
>Normal template.
>
>In many/most cases, one has to know how to examine VBA code to determine the
>cause of such changes.
>I was thinking of doing the following in a class, but I'm not sure whether
>this would help or further annoy users.
>
>I would include code that checked for a dirty Normal template at class
>startup AND before each macro runs.
>I would issue a message asking whether the user wanted the macro to save the
>changes now, and also give the user an opportunity to cancel the macro. The
>choices would be Yes, No, Cancel.
>
>Is the above useful?
>
>In any case, I will include code that checks for changes in Normal when the
>class terminates.
>This is to assure that my code does not cause any unintentional changes in
>the Normal template.
Hi Howard,
Just my 2 cents...
I would probably be annoyed by the messages, particularly if I
couldn't check some box that says "don't show this message any more".
If you intend for your class to make permanent changes in Normal.dot
with the user's permission, I'd like to see a single list at
termination that explains what each change is, and lets me select
which ones I want saved; the rest should be backed out. (The MVPs have
been asking Microsoft to build in this functionality, instead of the
blanket "changes were made" message, but it hasn't happened yet.)
If you don't intend to make permanent changes, then:
- track all changes your code makes
- if there are no other changes, just mark Normal.dot as Saved = True
before terminating so the template won't be saved
- if there are other changes that you didn't make, then back out all
of your changes before terminating but leave Normal.dot dirty
That could be a tall order, depending on what your code does.
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ:
http://word.mvps.org