HI
I have many word files that use a common macro, at the end of the macro I want to close the current document (if there is anything open). Sometimes there is a document to close, sometimes not.
How do I check to see if there is anything open ?
I've tried doing
If len(activeDocument.path) <> 0
but it doesn't like it as there is no active document.
any ideas appreciated.
thanks
I have many word files that use a common macro, at the end of the macro I want to close the current document (if there is anything open). Sometimes there is a document to close, sometimes not.
How do I check to see if there is anything open ?
I've tried doing
If len(activeDocument.path) <> 0
but it doesn't like it as there is no active document.
any ideas appreciated.
thanks