To save the clipboard content to a variable, I use this code:
Code:
Dim MyData As DataObject
Dim strClip As String
Set MyData = New DataObject
MyData.GetFromClipboard
strClip = MyData.GetText
The problem is this saves only the text information.
Is there a way to save all clipboard data (text, images, formatting) to a variable?
Then, how could I write the data inside that variable to the document, similar to using the 'Selection.Paste' instruction?
Alex