HELP! Microsoft Word-Setting e-mail recipients through code

JMH022

Active Member
Joined
Mar 7, 2002
Messages
320
I have a report I send out every day via e-mail. Currently I have my macro using ActiveDocument.SendMail. The problem is I have to type in the recipient's addresses every day. I want to get around that.

In Excel, I was able to use the following code:

Sub EmailReport()
Windows("Book1.xls").Activate
ActiveWorkbook.SendMail Recipients:=Array("email1@email.com", "email2@email.com"), _
Subject:=Date & " Status Report", ReturnReceipt:=True
End Sub

I can not find anywhere where Word will allow me to code the recipients and I have tried and tried with different variations of code and nothing has worked.

Can anyone help please?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,224,829
Messages
6,181,218
Members
453,024
Latest member
Wingit77

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top