Put text on clipboard?
Grüezi Paul
PaulD schrieb am 09.02.2005
Sub Macro1()
Dim MyData As DataObject
Set MyData = New DataObject
MyData.SetText "Enter what you want on the clipboard here"
MyData.PutInClipboard
End Sub
In order to run since MyData is earlybind, you must go to tools reference in
the VBA editor and select Microsoft Forms 2.0 Object Library. Or you can
change to late bind (i.e. use CreateObject)
Do you have an excple how to use latebinding with the DataObject?
I was not able to run it this way, but maybe I used the wrong statements.
Regards
Thomas Ramel
--
- MVP for Microsoft-Excel -
[Win XP Pro SP-2 / xl2000 SP-3]
|