Hi.
I use this code in Excel vba:
The problem is that Word don't close because Word popup a messagesbox that ask if you want to save the stuff in the clipboard. This popup will not be seen by the user until the user click the Word icon in the taskbar.
Is there a way to force Word to close and skip all warnings and popups?
I use this code in Excel vba:
VBA Code:
Dim wdApp As Word.Application
wdApp.Documents.Open "E:\Download\planeringsmote.doc"
wdApp.Documents(1).InlineShapes(2).Range.Copy
wdApp.Documents.Close
wdApp.Quit
The problem is that Word don't close because Word popup a messagesbox that ask if you want to save the stuff in the clipboard. This popup will not be seen by the user until the user click the Word icon in the taskbar.
Is there a way to force Word to close and skip all warnings and popups?