Sending to groups in outlook

  • Thread starter Thread starter sungen99
  • Start date Start date
S

sungen99

I know how to send an email via an excel macro but is there a way fo
the macro to go out into my outlook and grab a group and send th
email?

I guess what I am asking is does anyone have an example of a simpl
email send that uses outlooks contact book
 
Try this

More info here
http://www.rondebruin.nl/sendmail.htm

Sub Mail_small_Text_Outlook()
Dim OutApp As Object
Dim OutMail As Object
Dim strbody As String

Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
strbody = "Hi there" & vbNewLine & vbNewLine & _
"This is line 1" & vbNewLine & _
"This is line 2" & vbNewLine & _
"This is line 3" & vbNewLine & _
"This is line 4"

With OutMail
.Recipients.Add ("yourlist")
.CC = ""
.BCC = ""
.Subject = "This is the Subject line"
.Body = strbody
.Send 'or use .Display
End With

Set OutMail = Nothing
Set OutApp = Nothing
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top