Hi,
I have some difficulties using the quit command for a word application. Here is my code:
Dim WORDapp As Word.Application
WORDapp = CreateObject("WORD.Application"
WORDapp.Visible() = True
...some code here...
WORDapp.Quit()
WORDapp = Nothing
The problem is that Visual Studio doesn't want to accept my "WORDapp.Quit()". I have the error message:
'Quit' is ambiguous across the inherited interfaces 'Word._Application' and 'Word.ApplicationEvents2_Event'.
I use the Microsoft Word 9.0 Object library. All I want to do is to quit word at the end of my code. I searched through this site, but it seems like everybode use the ".Quit()" without problems. Can somebody help me?
I have some difficulties using the quit command for a word application. Here is my code:
Dim WORDapp As Word.Application
WORDapp = CreateObject("WORD.Application"
WORDapp.Visible() = True
...some code here...
WORDapp.Quit()
WORDapp = Nothing
The problem is that Visual Studio doesn't want to accept my "WORDapp.Quit()". I have the error message:
'Quit' is ambiguous across the inherited interfaces 'Word._Application' and 'Word.ApplicationEvents2_Event'.
I use the Microsoft Word 9.0 Object library. All I want to do is to quit word at the end of my code. I searched through this site, but it seems like everybode use the ".Quit()" without problems. Can somebody help me?