I want to find out if a specific object exists so I can close word on error.
What I want do is use objWord.Quit but if the object doesn't exist, objWord.Quit will cause the program to crash. Set objWord = Nothing doesn't work btw.
Thanks,
scratch
Code:
Dim objWord As Word.Application
'Set word as an application and make it invisible
Set objWord = CreateObject("Word.Application")
What I want do is use objWord.Quit but if the object doesn't exist, objWord.Quit will cause the program to crash. Set objWord = Nothing doesn't work btw.
Thanks,
scratch