Clear Clipboard

V

vbaNOOB

Hi

I have a vba that will do copy and paste thing from the active doc to a new
doc.
After running the program, I got some items in the clipboard
how can I clear/delete these item from the clipboard.

I have try sth like this (from the web)
Dim MyData As DataObject

Set MyData = New DataObject
MyData.SetText ""
MyData.PutInClipboard

but it seems not work
 
T

Tony Jollans

You cannot (post 2000) access the Office clipboard from VBA. The code you
post is for the Windows clipboard.
 
Top