I have done the code and it works only sending the first line.
A is email addresses
B Subject
C body
How can i make it repeat every line and send emails to all addresses in column with its own body in that is in column C.
Sub Email_From_Excel_Basic()
Dim emailApplication As Object
Dim emailItem As Object
Set emailApplication = CreateObject("Outlook.Application")
Set emailItem = emailApplication.CreateItem(0)
' Now we build the emial.
emailItem.To = Range("A2").Value
emailItem.Subject = Range("B2").Value
emailItem.Body = Range("C2").Value
'Send the Email
emailItem.Send
End Sub
A is email addresses
B Subject
C body
How can i make it repeat every line and send emails to all addresses in column with its own body in that is in column C.
Sub Email_From_Excel_Basic()
Dim emailApplication As Object
Dim emailItem As Object
Set emailApplication = CreateObject("Outlook.Application")
Set emailItem = emailApplication.CreateItem(0)
' Now we build the emial.
emailItem.To = Range("A2").Value
emailItem.Subject = Range("B2").Value
emailItem.Body = Range("C2").Value
'Send the Email
emailItem.Send
End Sub