Hi - I am new to using VB in word macros and am struggling to identify a line of code to detect the presence of an open document, and if no ducument is present then to open a new one.
I have tried the following without success.
If Document = False Then
Documents.Add DocumentType:=wdNewBlankDocument
EndIf
The first line must be wrong.
Help greatly appreciated !!
Astrikor
I have tried the following without success.
If Document = False Then
Documents.Add DocumentType:=wdNewBlankDocument
EndIf
The first line must be wrong.
Help greatly appreciated !!
Astrikor