Trying to copy a string to the clipboard in an Outlook 2007 script

15 pts.
Tags:
Microsoft Outlook 2007
Microsoft Outlook script
I'm building a script that will be triggered by a rule from Outlook 2007. The script is looking for a specific string in the body of the message and extracting some text. I'd like to copy that text into the clipboard to use it in another application. Here is my code: Sub SaveAsText(MyMail As MailItem) Dim pos As String Dim loco As String pos = InStr(MyMail.Body, "message for Loco") loco = Mid(MyMail.Body, pos + 17, 8) End Sub My text is stored in the variable loco, but I can't figure out how to save the value of the string variable in the clipboard. Thanks for your help.

Software/Hardware used:
Outlook 2007

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following