Entering email address programmatically

T

Tee

I have a Microsoft Word Template which is accessed from
Microsoft's Access database program. The email address
is put into a DOCVARIABLE within the document created
using the template.
With a button on the MenuBar of the newly created Work
document, I can switch to E-Mail view and put text into
the subject line with the code
ActiveWindow.EnvelopeVisible = True
activedocument.mailEnvelope.Item = "Receipt of
Application"(e-mail address removed).

I can't figure out how to put the email address into the
To. line,

Thanks

Tee
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

See 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
 

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