Bonjour,
Dans son message, < Ed > écrivait :
In this message, < Ed > wrote:
|| Hi, Jean-Guy. When you say:
||
||| if you create the reference in your project via
||| the VBE window (Tools > References...), the reference will stick, i.e
you do
||| not need to code for it.
||
|| does the reference stick to the document or to the template? If I create
a
|| doc based on Normal, and set a macro in the doc's VB Project (AutoOpen,
|| let's say), are the object library references in my doc's VB Project or
in
|| Normal's VB Project? If I want to give that document to someone else so
|| they can run the macro, will the reference move with the doc? Or would I
|| need to create a template to hold the references?
||
It is my understanding that they stick to the project. Projects are held by
templates or by documents.
But they stick regardless of the project "container".
Try it, Open several documents, all based on different templates, go in
each document's project and add different reference to a different library.
Close all your documents, and then open them one by one, the references
should still be there, as part of each document's project. But if you switch
between projects, the active references change.
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site:
http://www.word.mvps.org