What error are you getting?Hey *Skyybot!
I'm getting an error with that code.
I thought it was something with my Reverences?
But when I check off my Microsoft Office 16.0 Object Library, it still gives me an error.
Thanks,
pinaceous
Sub CloseWord()
Dim W As Object
On Error Resume Next
Set W = GetObject(, "Word.Application")
If W Is Nothing Then Exit Sub
W.ActiveDocument.Close SaveChanges:=False
W.Quit
Set W = Nothing
End Sub
I'm getting an error with that code.
I thought it was something with my Reverences?
But when I check off my Microsoft Office 16.0 Object Library, it still gives me an error.
That is very confusing!!I'm getting no error or nothing at all.