Perry
2007-01-17 18:30:24 UTC
Following VBA statement:
Debug.Print oDoc.Name
prints out the name of a document beautifully, assuming oDoc as a valid
object
pointing to a newly created document.
Assuming oDoc was instantiated using similcar code like:
Set oDoc = Documents.Add("MyTemplate.dot")
If this doesn't work, you'll have to kick in more info ...
Krgrds,
Perry
Debug.Print oDoc.Name
prints out the name of a document beautifully, assuming oDoc as a valid
object
pointing to a newly created document.
Assuming oDoc was instantiated using similcar code like:
Set oDoc = Documents.Add("MyTemplate.dot")
If this doesn't work, you'll have to kick in more info ...
Krgrds,
Perry
Hello,
I have the following problem: I am currently writing an Add-In, which
writes
into a file, if a document was newly created.
If a user creates a new document and does not save the document before he
closes word, then I cant get the filename via the BeforeCloseEvent,
because
it is raised before saving the document. How can I get the filename of a
newly created document?
Thx for any hint!
Jens
I have the following problem: I am currently writing an Add-In, which
writes
into a file, if a document was newly created.
If a user creates a new document and does not save the document before he
closes word, then I cant get the filename via the BeforeCloseEvent,
because
it is raised before saving the document. How can I get the filename of a
newly created document?
Thx for any hint!
Jens