Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

clear the copied text before closing?

Status
Not open for further replies.

TravisLaborde

IS-IT--Management
Nov 4, 2002
84
US
I have a Word Document, which uses VBA, to open various other Word Documents, based on data, and copies their text, then paste's that text into a newly created document.

At the end of the macro, the various "source" documents are closed, and only the newly created "Document1" is left open. This all works fine, but...

When the users exit this document, they get the prompt "You have placed a large amount of data into the Clipboard... etc... Do you want to .... etc.?"

Is there a way for me to clear that beforehand, in my VBA, so that the user does not get this message?

Thanks,
Travis
 
I don't know about dumping the clipboard but I can suggest a workaround.

This error only pops up when a large amount of data has been posted, so copy a blank cell to the workbook before closing

HTH

;P
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top