Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS Word & email

Status
Not open for further replies.

tk7834

Programmer
Jul 9, 2002
15
US
I'm making a template (in Word) and putting my email at the top of the template. I want my user to fill out the template, then click on the email link and send me an email with the word doc attached. It can either send automatically, or bring up a new blank email with the doc attached and my address so all they have to do is hit send.

Is this possible? Thanks in advance!
 
I was able to do this with the help of...


Be sure to note that you'll need to set a reference (Tools-References in the Visual Basic Editor) to the Microsoft Outlook Object x.x Library to get the code to work.

The first block of code under item 2, "Automating Outlook", sends the text in the document as the content of the email (not as an attachment); and it sends it as plain text, so all formatting is lost.

The second block of code under item 2, "Automating Outlook", sends the document as an attachment (provided the document has been saved at least once).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top