B
Beeawwb
Hi All,
I've been reading various posts mentioning avoiding using ActiveDocument, eg
Dim oDoc as Document
Set oDoc = Documents.Add(Filename:="NNN")
What I'm trying to get my head around is, this assumes that the document has
been saved, doesn't it? What if you're creating a brand new document for the
first time, or something like that?
I only ask because here at work, we load templates from our Intranet (e.g.
https://.../Domino/library/Standard...D2558CA256DC700098F69/$FILE/HADVICE+v2003.dot),
which always open as read only documents, and they never actually get saved
(we edit them, and then import them into our imaging system which does the
saves them in its native format). When I'm running macros to format these
documents before they get imported, I have to use oDoc.ActiveDocument to say
which document I'm formatting.
Is there any other way of doing this, or am I correct in assuming that I
must reference the ActiveDocument, and then set oDoc as nothing on exiting
the macro.
Thanks for your help,
-Bob
I've been reading various posts mentioning avoiding using ActiveDocument, eg
Dim oDoc as Document
Set oDoc = Documents.Add(Filename:="NNN")
What I'm trying to get my head around is, this assumes that the document has
been saved, doesn't it? What if you're creating a brand new document for the
first time, or something like that?
I only ask because here at work, we load templates from our Intranet (e.g.
https://.../Domino/library/Standard...D2558CA256DC700098F69/$FILE/HADVICE+v2003.dot),
which always open as read only documents, and they never actually get saved
(we edit them, and then import them into our imaging system which does the
saves them in its native format). When I'm running macros to format these
documents before they get imported, I have to use oDoc.ActiveDocument to say
which document I'm formatting.
Is there any other way of doing this, or am I correct in assuming that I
must reference the ActiveDocument, and then set oDoc as nothing on exiting
the macro.
Thanks for your help,
-Bob