OutlookEXPRESS and VBA

B

BradC

where can i get code or how do I use VBA to open Outlook
Express and merge a word document into a new email and
send it?
 
D

Doug Robbins

AFAIK, you cannot automate Outlook Express.

Check out Mailmerge in the Visual Basic Help File. This is the example on
how to automate the mailmerge operation to email

This example merges the document named "FormLetter.doc" with its attached
data document and sends the results to the e-mail addresses stored in the
Email merge field.

With Documents("FormLetter.doc").MailMerge
.MailAddressFieldName = "Email"
.MailSubject = "Amazing offer"
.Destination = wdSendToEmail
.Execute
End With


--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent 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