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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically empty the Clipboard after pasting information

Status
Not open for further replies.

wabahn

Technical User
Oct 23, 2008
20
US
I have a simple macro that opens an WorkbookA, copies worksheetA, pastes the data into worksheetB in workbookB, then closes the workbookA. On closing of workbookA, I want to automatically clear the clipboard and not be prompted as to whether I want to keep the data on the clipboard. How do I do this?
 

Code:
DisplayAlerts = False
And you will not be prompted

To clear the clipboard you can simply point to an empty cell and copy it.

Have fun.

---- Andy
 
Thanks Andy - I was making it much more complicated than it needed to be.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top