Discussion:
Read-only Normal.dot and VB6 Add-In
(too old to reply)
Chris H
2004-10-07 14:28:58 UTC
Permalink
Hello All,

I am sure you know of the problems with add-ins, toolbars and the read-only
normal.dot.

I have been trying to get around this problem for weeks now.

Basically, the toolbar I add to Word must go away just before normal
template begins to save AND before Word shuts down.

So, how can I remove my toolbar before the normal template begins to save?

FYI... This is a VB(not VBA addin)..... The normal.dot exist on a networked
read-only location and all users who would use this add-in are connected to
this read-only template. I've got to work around this company policy
somehow....

Thanks in advance,
Chris H
b***@hotmail.com
2004-10-15 19:05:31 UTC
Permalink
Not sure what the differences are between VB and VBA, but I just solved
this issue in a VBA add-in. I had to set the .Saved property of my
Normal template to True before exiting every subprogram in which I made
a change to the template. In my case it was a custom menu rather than
a toolbar, but the same thing might work for you. The key was that
this had to be done inside each subprog where I made a change - it
didn't work if I only set it once before exiting, for example in the
AutoExit event trap.
Charles Kenyon
2004-10-15 23:59:15 UTC
Permalink
Perhaps use your vb program to create a .dot file and set your customization
context for changes to that .dot file, loading it as an Add-In. That way you
are not saving changes to normal.dot. Upon ending your application unload
and delete the .dot file.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
Post by Chris H
Hello All,
I am sure you know of the problems with add-ins, toolbars and the read-only
normal.dot.
I have been trying to get around this problem for weeks now.
Basically, the toolbar I add to Word must go away just before normal
template begins to save AND before Word shuts down.
So, how can I remove my toolbar before the normal template begins to save?
FYI... This is a VB(not VBA addin)..... The normal.dot exist on a networked
read-only location and all users who would use this add-in are connected to
this read-only template. I've got to work around this company policy
somehow....
Thanks in advance,
Chris H
Loading...