View Single Post
  #1  
Old February 10th 09, 04:45 PM posted to microsoft.public.outlook.program_vba
Jason
external usenet poster
 
Posts: 117
Default How to send email to list of individuals

I have the below code to generate an email, I would like to add a To: block
and take the list of receipiants from an excel spreadsheet that updates
daily. How can this be done.

Sub Macro1()



Dim olApp As Outlook.Application

Dim olMsg As Outlook.MailItem



Set olApp = Outlook.Application

Set olMsg = olApp.CreateItem(olMailItem)



With olMsg



.Subject = "Hello world"

.Display

.Body = "Hello, here is my email!" & .Body

End With



Set olMsg = Nothing

Set olApp = Nothing

End Sub

Ads