Rodney Coello
New Member
Hello,
I want to set up a VBA Code that will send a mass email to several email recipients. can someone please help. I have attached an excel file to use as example. thank you.
this is the code I have so far. what am I doing wrong? thanks also I have attached excel file for example.
I want to set up a VBA Code that will send a mass email to several email recipients. can someone please help. I have attached an excel file to use as example. thank you.
this is the code I have so far. what am I doing wrong? thanks also I have attached excel file for example.
Code:
Sub GL_Central_Texas(what_address As String, subject_line As String, mail_body As String)
Dim OlApp As Outlook.Application
Set OlMail = CreateObject(Outlook.Application)
Dim OlMail As Outlook.MailItem
Set OlMail = OlApp.CreateItem(olMailItem)
.Subject = "October Home Health & Hospice GL Support"
.Body = "Attached are the HCHB reports and the Horizon GL Excel file to support your uploads to your GL."
.Display
row_number = 1
Do
DoEvents
Loop Until row_number = 4
End Sub
Attachments
Last edited by a moderator: