I found this code in one of the threads to clear the clipboard while in Excel.
Sub ClearTheClipboard()
Dim MyData As Object
Set MyData = New DataObject
MyData.SetText ""
On Error Resume Next
MyData.PutInClipboard
Set MyData = Nothing
End Sub
At "set MyData" I receive an error message "User defined type not defined"
I would appreciate some assistance with this issue.
kevsim
Sub ClearTheClipboard()
Dim MyData As Object
Set MyData = New DataObject
MyData.SetText ""
On Error Resume Next
MyData.PutInClipboard
Set MyData = Nothing
End Sub
At "set MyData" I receive an error message "User defined type not defined"
I would appreciate some assistance with this issue.
kevsim