wackywoo105
Registered User.
- Local time
- Today, 14:42
- Joined
- Mar 14, 2014
- Messages
- 203
Having created a publisher document object using:
I use the following code to close it:
This code however doesn't work in Windows 10. It's fine with Windows 7. In Windows 10 the publisher window stays open but the document goes blank.
Can anyone help with the code required to release the publisher object and close it without saving?
Code:
Dim appPub As Publisher.Application
Dim pubDoc As Publisher.Document
Dim pubShape As Publisher.Shape
Set appPub = New Publisher.Application
Set pubDoc = appPub.Open(MyDoc)
I use the following code to close it:
Code:
pubDoc.Close
appPub.Quit
Set appPub = Nothing
This code however doesn't work in Windows 10. It's fine with Windows 7. In Windows 10 the publisher window stays open but the document goes blank.
Can anyone help with the code required to release the publisher object and close it without saving?