Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Sending to groups in outlook


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

--
sungen9
-----------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...nfo&userid=914
View this thread: http://www.excelforum.com/showthread.php?threadid=54253

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Sending to groups in outlook

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


--
Regards Ron de Bruin
http://www.rondebruin.nl


"sungen99" wrote in message
...

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

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


--
sungen99
------------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=542536



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending Excel through Outlook MsNat Excel Discussion (Misc queries) 1 October 21st 09 10:11 PM
Sending notifications through outlook Doberman Excel Discussion (Misc queries) 2 May 6th 07 04:26 PM
VBA for sending workbook via Outlook Tod Excel Programming 1 May 26th 05 04:48 PM
Sending Appointments via Outlook Paul Thompson Excel Programming 3 April 14th 04 12:47 AM
sending outlook mail bilal Excel Programming 1 July 25th 03 01:16 PM


All times are GMT +1. The time now is 09:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"