> 1. "if the template is put into the startup folder and becomes, in effect,
> the normal.dot" This is not correct at all. A template in Startup is a
[quoted text clipped - 42 lines]
> --
> Message posted via OfficeKB.comhttp://www.officekb.com/Uwe/Forums.aspx/word-programming/200712/1
Hi James
1. If you need to edit a global template (aka add-in), then unload it
first. That is, use Tools > Templates and Add-ins and un-tick the box.
Now, use File > Open to open it and work on it. Word will let you open
and edit a file that is simultaneously loaded as an add-in, but it is
not recommended--if Word is having a bad hair day, it can crash and
destroy the file. And to provide some certainty in case you open and
work on the file simultaneously by accident, make frequent backup
copies.
2. If your .dot file has references to a library, then the .dot file
will work on another machine if the other machine has the same library
and the same version of that library. If the other user has a later
version, then it will generally work, but you would need to test. If the
other machine does not have the library installed (eg in your case, the
other machine does not have Outlook installed), then the user will get
an unrecoverable error. You can't code around that error (ie you can't
do If ... Then; and you can't trap it with On Error ....). Instead, if
there is there is a chance that the other machine does not have the
required library, then use late binding.
For more info on that, see
Early vs. Late Binding
http://www.word.mvps.org/FAQs/InterDev/EarlyvsLateBinding.htm
Hope this helps.
Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
On Dec 28, 2:49 pm, "fumei via OfficeKB.com" <u37563@uwe> wrote:
> 1. "if the template is put into the startup folder and becomes, in
> effect,
[quoted text clipped - 58 lines]
> Message posted via
> OfficeKB.comhttp://www.officekb.com/Uwe/Forums.aspx/word-programming/200712/1
Regarding the references: when I code up the template it includes code
which uses Outlook and Scripting object libraries. Now, I am putting
these references in when I have the template open on its own, because
as you point out, I can't open it when it's in the startup folder.
Now, before I try to put this template into another user's startup
folder, I am curious whether those references I made earlier will
"stick". Does that clarify, I hope?