ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Email (https://www.excelbanter.com/excel-programming/354310-email.html)

PBANKS[_8_]

Email
 

Is there a way to email more than one person in one line of code?


This is the way that I have it now:
ActiveWorkbook.SendMail Recipients:="pbanks"

And this did not work:
ActiveWorkbook.SendMail Recipients:="pbanks & pbanks"

Nor did:
ActiveWorkbook.SendMail Recipients:="pbanks;pbanks"

Any ideas?


--
PBANKS
------------------------------------------------------------------------
PBANKS's Profile: http://www.excelforum.com/member.php...o&userid=31370
View this thread: http://www.excelforum.com/showthread...hreadid=516247


Dave Peterson

Email
 
ActiveWorkbook.SendMail Recipients:=array("pbanks","pbanks")

(the same person twice???)

PBANKS wrote:

Is there a way to email more than one person in one line of code?

This is the way that I have it now:
ActiveWorkbook.SendMail Recipients:="pbanks"

And this did not work:
ActiveWorkbook.SendMail Recipients:="pbanks & pbanks"

Nor did:
ActiveWorkbook.SendMail Recipients:="pbanks;pbanks"

Any ideas?

--
PBANKS
------------------------------------------------------------------------
PBANKS's Profile: http://www.excelforum.com/member.php...o&userid=31370
View this thread: http://www.excelforum.com/showthread...hreadid=516247


--

Dave Peterson

PBANKS[_9_]

Email
 

Just testing, do not want the people that will be getting these sheets
to get confused (like me) thanks, I will try this.


--
PBANKS
------------------------------------------------------------------------
PBANKS's Profile: http://www.excelforum.com/member.php...o&userid=31370
View this thread: http://www.excelforum.com/showthread...hreadid=516247


PBANKS[_10_]

Email
 

Works great

--
PBANK
-----------------------------------------------------------------------
PBANKS's Profile: http://www.excelforum.com/member.php...fo&userid=3137
View this thread: http://www.excelforum.com/showthread.php?threadid=51624



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com