I have been using this code at the end of some macros to clear my clipboard memory. I works fine for me in Word 97, 2000, and 2002.
Dim MyData As DataObject
Set MyData = New DataObject
MyData.SetText “”
MyData.PutInClipboard
I have friends with the Word 2000 and 2002 who have not been able to use it. They get this message for first line: “compile error: user-defined type not defined” .
Does any one know how to rewrite it so it will run?
Thanks.
Jerry