T
Tom Smith
It looks like you should be posting to
microsoft.public.word.vba.beginners
TomS
In the code above Im opening a word document, But when I try to close the Document and the Application of word, I have 2 errors. With this error I cant compile Please help me I need this
Errors
1-'Quit' is ambiguous across the inherited interfaces 'Word._Application' and 'Word.ApplicationEvents4_Event'.
2- 'close' is ambiguous across the inherited interfaces 'Word._Document' and 'Word.DocumentEvents2_Event'.
Dim wrd As New Word.Application()
Dim docu As Word.Document
wrd.Visible = Visible
wrd.ScreenUpdating = False
'Open the document
docu = wrd.Documents.Open("c:\worddoc1.doc")
'Here comes the error
docu.Close()
wrd.Quit()
doc = Nothing
wrd = Nothing
microsoft.public.word.vba.beginners
TomS
In the code above Im opening a word document, But when I try to close the Document and the Application of word, I have 2 errors. With this error I cant compile Please help me I need this
Errors
1-'Quit' is ambiguous across the inherited interfaces 'Word._Application' and 'Word.ApplicationEvents4_Event'.
2- 'close' is ambiguous across the inherited interfaces 'Word._Document' and 'Word.DocumentEvents2_Event'.
Dim wrd As New Word.Application()
Dim docu As Word.Document
wrd.Visible = Visible
wrd.ScreenUpdating = False
'Open the document
docu = wrd.Documents.Open("c:\worddoc1.doc")
'Here comes the error
docu.Close()
wrd.Quit()
doc = Nothing
wrd = Nothing