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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top