I am trying to read the clipboard in Word VBA, but I’m not meeting with much success. I found this snippet on the MVP site:
Dim MyData As DataObject
Dim strClip As String
Set MyData = New DataObject
MyData.GetFromClipboard
strClip = MyData.GetText
But when I try it, I get the error “User Defined Type not Defined” on the Dim of MyData. Have I forgotten to install something? Relatively new system, running Windows NT4, SP6a, with the entire Office suite. I’ve also installed VB6.