I am copying from word doc to excel worksheet.
However I cannot not get the Word App to quit without the "Large amount of data in clipboard" dialog box popping up at the end.
Sub TKButton()
Dim wrdApp As Object
Dim wrdDoc As Object
Set wrdApp = CreateObject("Word.Application")
wrdApp.Visible = True
Set wrdDoc = wrdApp.Documents.Open(thisisthefilepath.doc)
wrdApp.Selection.WholeStory
wrdApp.Selection.Copy
Sheets("TK").Paste Destination:=Sheets("TK").Range("A2")
wrdApp.Documents.Close (False)
wrdApp.Quit
Set wrdApp = Nothing
I have tried:
Application.displayAlerts = False
wrdApp.displayAlerts = False
wrdApp.cutcopymode = False
Nothing seems to stop it from happening.