This code-snippet (from VB6) starts an Word 2003 application and adds a new document:
Dim WithEvents wApp As Word.Application
Dim WithEvents wDoc As Document
Set wApp = New Application
wApp.DisplayAlerts = wdAlertsNone
Set wDoc = wApp.Documents.Add
wApp.Visible = True
Scenario:
- I run something like this code from a simple vb6 application.
- I Copy a large text (ie. from a website) and paste it into the new word document
- After pasted the text a couple of times into same document, I mark it all, and copy it from Word
- Then I close the word application, refuse to save the document and get the ".... large amount of data..." warning at the end.
Allmost every example I found, describes this warning-problem in MS-Excel and MS-Access cases, so I haven't found any working MS Word solutions. And yes, I have tried to change or even remove the registry value
HKey_CURRENT_USER\Software\Microsoft\Office\11.0\Common\General\AcbControl
Without having any effect to the warning-problem in MS-Word 2003.
I have to get the last copied data after closing the word-application, so clearing the clipboard is not a solution.
Has MS Word 2003 a bug ignoring any warning settings, or is there any way to disable the "you copied a large amount of data onto the clipboard..." warning when closing Word 2003. In settings or from some code ?