Ok im pretty sure i cant find the answer in advanced search... so here goes:
im currently using: -
On Error Resume Next
Set objWord = GetObject(, "Word.Application"
If Err.Number <> 0 Then
'word not open
Err.Clear
Set objWord = New Word.Application
End If
to check if word is currently open....
what i would like to do is check (without using the on error bit) by doing something like:-
if objword=nothing then
'create object
however this errors saying invalid use of blah blah blah!
can anyone point me in the right direction, i dont like using errors to direct my code!!
any help appreciated!
im currently using: -
On Error Resume Next
Set objWord = GetObject(, "Word.Application"
If Err.Number <> 0 Then
'word not open
Err.Clear
Set objWord = New Word.Application
End If
to check if word is currently open....
what i would like to do is check (without using the on error bit) by doing something like:-
if objword=nothing then
'create object
however this errors saying invalid use of blah blah blah!
can anyone point me in the right direction, i dont like using errors to direct my code!!
any help appreciated!