Hi Rob
Hi, i'm looking for code to clear one (office) clipboard item out of many.
And is it possible to do a copy-paste action without filling the (office)
clipboard?
Maybe, the MSForms library's DataObject is something for you:
' clear the clipboard:
Dim dobj As New DataObject
dobj.SetText ""
dobj.PutInClipboard
' set some text:
Dim dobj As New DataObject
dobj.SetText "Hello World!"
dobj.PutInClipboard
' get clipboards contents:
Dim dobj As New DataObject
dobj.GetFromClipboard
MsgBox dobj.GetText
Note that you need to add a reference to the MSForms library (which
is automatically generated for you, if you already added a UserForm
to your project)...
Cheers,
Martin