Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email addresses in Excel 1

Status
Not open for further replies.

mccullj

Technical User
Oct 29, 2009
3
US
I have a program that sends out an Email to a user when that user needs to carry out a task as dictated by Excel.
The user name is picked from a cell in Excel.
On some occasions there may be more than one user hence multiple Email addresses. I can find many ways to send to a single mail but no ways to send to multiple mails as dictated by an Excel Range.
Currently I am sending one mail at a time.
Can anyone help with this please.

Jim
 


Hi,

Use a for..next loop
Code:
'assumed that you list starts in A2, is more than one cell, and is contiguous
dim r as range

for each r in range([A2], [A2].end(xldown))
  'send eMail here to ...
  msgbox r.value
next


Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Sorry all I should have said. Yes I use Outlook 2003.
 
So are you automating Outlook from Excel to send your email?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top