Sending document as email or copy to outlook in html format

J

Jonathan Parminter

Hi, this is what I want to do...
Programmatically create a document in word using a
template that has some boilerplate text and a table. After
populating the table I now want to email this document to
a mail recipient with another document as an attachment.

Using code, I cannot find a programmable equivalent torouting method (that is, to send the active document as an
attachment rather than as the body of an email). If you
can help me to insert a To address, subject and an
attachment then the follow-on problem is redundant.

As a work around, I am creating a outlook email with the
document contents as the email body. The problem with this
is that all the formatting in Word is lost! Do you know
how I can reference the hmtl version of the active
document?

Any ideas or suggestions appreciated :)

Cheers
Jonathan
 
D

Doug Robbins - Word MVP

See the second method in the article "How to send an email from Word using
VBA" at:

http://word.mvps.org/FAQs/InterDev/SendMail.htm


--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
J

Jonathan Parminter

Thanks Doug for your reply especially as it was so prompt.

The article you recommend is good. The problem is that
part 2. Automating Outlook does not preserve the
formatting in word when the document contents are placed
into the body of the email.

How do I preserve the format when assigning to the body of
an email the contents of a word document? I can't find how
to emmulate a manual copy/paste into the email body as
this does work.... I hope this doesn't sound like a whine
<<yuk>>

Cheers
Jonathan
 
D

Doug Robbins - Word MVP

Send it as an attachment.

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
J

Jonathan Parminter

Thanks friend,

Cheers
Jonathan
-----Original Message-----
Send it as an attachment.

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
"Jonathan Parminter"

.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top