General information
Category:
COM/DCOM and OLE Automation
Please disregard what I just said. I found out that what I need was the following:
loWord.ActiveDocument.PrintOut()
loWord.ActiveDocument.Close(wdDoNotSaveChanges)
It wasn't the PrintOut that was causing the problem with Work appearing instead it was the Close. I originally had loWord.Documents.Close(wdDoNotSaveChanges) and when I changed it to loWord.ActiveDocument.Close(wdDoNotSaveChanges) everything works as I want it to.
Thanks
Milt
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only