A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

copy to clipboard



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 22nd 06, 12:50 AM posted to microsoft.public.outlook.program_vba
Joel Allen
external usenet poster
 
Posts: 117
Default copy to clipboard

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
  #2  
Old February 22nd 06, 05:49 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default copy to clipboard

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

  #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



  #4  
Old February 23rd 06, 06:32 PM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default copy to clipboard

Am Wed, 22 Feb 2006 15:54:59 -0800 schrieb Joel Allen:

....
MyDataObj.Clear
MyDataObj.SetText "Whatever", 1


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


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

  #5  
Old February 23rd 06, 07:27 PM posted to microsoft.public.outlook.program_vba
Joel Allen
external usenet poster
 
Posts: 117
Default copy to clipboard

Thank you.

I get an error though on this line:

Dim MyDataObj As New DataObject

It says "expected end of statement". I have added the "Microsoft Forms 2.0
Library" to my references too.

Thanks for your help,
Joel

"Michael Bauer" wrote in message
.. .
Am Wed, 22 Feb 2006 15:54:59 -0800 schrieb Joel Allen:

...
MyDataObj.Clear
MyDataObj.SetText "Whatever", 1


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


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



  #6  
Old February 24th 06, 06:09 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default copy to clipboard

Am Thu, 23 Feb 2006 11:27:30 -0800 schrieb Joel Allen:

Are you running VBScript instead of VBA?

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


Thank you.

I get an error though on this line:

Dim MyDataObj As New DataObject

It says "expected end of statement". I have added the "Microsoft Forms

2.0
Library" to my references too.

Thanks for your help,
Joel

"Michael Bauer" wrote in message
.. .
Am Wed, 22 Feb 2006 15:54:59 -0800 schrieb Joel Allen:

...
MyDataObj.Clear
MyDataObj.SetText "Whatever", 1


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


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

  #7  
Old February 26th 06, 07:44 PM posted to microsoft.public.outlook.program_vba
Joel Allen
external usenet poster
 
Posts: 10
Default copy to clipboard

I am in the Script Editor of my custom task form. Does that help?

Thanks,
Joel

"Michael Bauer" wrote in message
...
Am Thu, 23 Feb 2006 11:27:30 -0800 schrieb Joel Allen:

Are you running VBScript instead of VBA?

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


Thank you.

I get an error though on this line:

Dim MyDataObj As New DataObject

It says "expected end of statement". I have added the "Microsoft Forms

2.0
Library" to my references too.

Thanks for your help,
Joel

"Michael Bauer" wrote in message
.. .
Am Wed, 22 Feb 2006 15:54:59 -0800 schrieb Joel Allen:

...
MyDataObj.Clear
MyDataObj.SetText "Whatever", 1


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


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



  #8  
Old February 27th 06, 11:25 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default copy to clipboard

Am Sun, 26 Feb 2006 19:44:36 GMT schrieb Joel Allen:

That depends on the point of view :-) It helps me but as I´m not familiar
with VBScript I´m not sure whether or not I can help you.

Please try to change the declaration from

Dim MyDataObj As New DataObject


to
Dim MyDataObj


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


I am in the Script Editor of my custom task form. Does that help?

Thanks,
Joel

"Michael Bauer" wrote in message
...
Am Thu, 23 Feb 2006 11:27:30 -0800 schrieb Joel Allen:

Are you running VBScript instead of VBA?

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


Thank you.

I get an error though on this line:

Dim MyDataObj As New DataObject

It says "expected end of statement". I have added the "Microsoft Forms

2.0
Library" to my references too.

Thanks for your help,
Joel

"Michael Bauer" wrote in message
.. .
Am Wed, 22 Feb 2006 15:54:59 -0800 schrieb Joel Allen:

...
MyDataObj.Clear
MyDataObj.SetText "Whatever", 1


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


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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy sender address to clipboard automatically [email protected] Outlook and VBA 2 February 22nd 06 09:32 PM
clipboard Joel Allen Outlook and VBA 0 February 22nd 06 12:42 AM
clipboard Joel Allen Outlook and VBA 1 January 28th 06 05:04 PM
Clipboard Joel Allen Outlook and VBA 0 January 26th 06 04:16 PM
Clicking a mail copies it to the clipboard Enrique Perez-Terron Outlook Express 3 January 21st 06 07:51 PM


All times are GMT +1. The time now is 10:31 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.