littleguy1810
New Member
- Joined
- Aug 21, 2014
- Messages
- 40
Hi
A great guy has been helping me with this code(Macropod) could someone help me with this as he is offline, ?I get an error msg when trying to run it. Error code 91? Object variable or with block variable not set.
Thanks
A great guy has been helping me with this code(Macropod) could someone help me with this as he is offline, ?I get an error msg when trying to run it. Error code 91? Object variable or with block variable not set.
Thanks
Code:
Dim wdApp As New Word.Application, wdDoc As Word.DocumentSet wdDoc = wdApp.Documents.Open(Filename:=ActiveWorkbook.Path & "T:\Quality Management System\Section 7 Personnel\07.004 Animal Feed Jan16.docx", _
ReadOnly:=True, AddToRecentFiles:=False)
With wdDoc
.PrintOut
.Close , False
End With
wdApp.Quit
Set wdDoc = Nothing: Set wdApp = Nothing