General discussion

Locked

Word to Outlook Message

By hurdk ·
I have a Word document.
On the Word document I have a click command button.
I need code behind the command button to copy the Word document to an Outlook message. The copy command would select the entire Word document (I think WholeStory is involved.)
I need code to Open a new Outlook message, do Edit and Paste Special.
The Paste Special in Outlook will copy the Word document to the Outlook message.
In Outlook I must use File, New, Mail Message, Edit, Paste Special, Formatted Text (RTF), OK.

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Word to Outlook Message

by wjlarue In reply to Word to Outlook Message

Well, as I was browsing through the list of open questions, I couldn't help notice that no one has replied to yours. Hopefully my suggestion will help. Now I am a tech geek and I love to program complicated scripts and application (makes me feel like a freck'n genus) but why beat around a bush when you can just cut it down. Is it a possibility to just open a message and add your document as an attachment?

To do this, just add the following line to your command button's click event: ActiveDocument.SendMail
(I believe this uses the default mail program on a person?s machine)

It is possible to program a word document to select some text (assuming you don't really want the select entire document as a message since it has command buttons) create an e-mail and send it. But it would take some time and definitely be beyond the scope of an answer on this board (answer max length: 1930).

Let me know if this helps. If you want to really take the latter route, e-mail me and I will be more then glad to try to assist you further and provide some resources to accomplish the task.

Collapse -

Word to Outlook Message

by hurdk In reply to Word to Outlook Message

Excellent response.

Much professional research was involved.

Analytical and develomental techniques were implemented.

Thank you so much.

Collapse -

Word to Outlook Message

by hurdk In reply to Word to Outlook Message

Point value changed by question poster.

Collapse -

Word to Outlook Message

by hurdk In reply to Word to Outlook Message

This question was closed by the author

Back to Web Development Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums