Hello,
I am trying to create a spreadsheet that I can use to input some data and then create emails to different destinataries with different arays of data.
so far i got this far:
I need to be able to create outlook emails from a spreadsheet.
Sub Test()
Dim olApp As Object, olMail As Object
Set olApp = CreateObject("Outlook.Application")
Set olMail = olApp.CreateItem(0)
olMail.To = "Anyone@anywhere.com"
olMail.Body = Range("a1")
olMail.Display
AppActivate "Microsoft Excel"
End Sub
I got a couple issues:
1) how do i select more than 1 email address?
2)how do i select a wider range? I need to select a3:d21, but having issues doing so.
I would really apprecitae some help regarding this matter.
thanks!
AP
I am trying to create a spreadsheet that I can use to input some data and then create emails to different destinataries with different arays of data.
so far i got this far:
I need to be able to create outlook emails from a spreadsheet.
Sub Test()
Dim olApp As Object, olMail As Object
Set olApp = CreateObject("Outlook.Application")
Set olMail = olApp.CreateItem(0)
olMail.To = "Anyone@anywhere.com"
olMail.Body = Range("a1")
olMail.Display
AppActivate "Microsoft Excel"
End Sub
I got a couple issues:
1) how do i select more than 1 email address?
2)how do i select a wider range? I need to select a3:d21, but having issues doing so.
I would really apprecitae some help regarding this matter.
thanks!
AP