How to clear the contents (and images) from the clipboard?

V

vicenflor

Hello,

Could anybody help me with code to clear all images and contents on the
clipboard? The reason is that I want to get rid of the message "You placed a
large amount..." when I stop my application. The code below, which I have
found on the internet, seems not to work for me although I have a userform in
my application which is required. Also the forms 2.0 object library is
selected.

Thanks for any help

Vicenflor


Sub clipboard()


Dim MyData As DataObject


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

End Sub
 

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