View Single Post
  #3  
Old February 22nd 06, 11:54 PM posted to microsoft.public.outlook.program_vba
Joel Allen
external usenet poster
 
Posts: 117
Default copy to clipboard

Thanks. I tried this and it's not working. Am I close? I'm tryin to get
the content of TestField into the clipboard.

Dim MyDataObj As New DataObject
MyDataObj = Item.UserProperties("TestField")
MyDataObj.SetText

Thanks for your help,
Joel


"Michael Bauer" wrote in message
.. .
Am Tue, 21 Feb 2006 16:50:48 -0800 schrieb Joel Allen:

Joel, please add a reference onto the "Microsoft Forms 2.0 Library" to
your
project. You can use that library´s DataObject object; call the Clear
method
first and then use SetText to write your text into the clipboard.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


Hello,

I want to programatically copy text from one of my task fields and send
it
to the
clipboard.

Can you someone point me in the right direction or give me some simple
sample code?

Thank you,
Joel



Ads