J
jason
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
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