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
 
Top