Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to use the SendMail function in Excel VBA to send the
workbook as an attachment to a distribution list. The distribution list contains spaces, and it keeps coming back as an unknown recipient. Here's the code, it's pretty simple: ActiveWorkbook.SendMail _ Recipients:=EmlAddr & ";" & CCAddr, _ Subject:=FleNme The variables: EmlAddr = " CCAddr = " CCI HRD - LNP Support" I realize, of course that this is all going in to the To: line and that you can't use an actual CC with sendmail, but that's not really a big deal to me. CCAddr is the distribution list. Any suggestions? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How about:
Recipients:=array(EmlAddr, CCAddr) (untested) belkingold wrote: I am trying to use the SendMail function in Excel VBA to send the workbook as an attachment to a distribution list. The distribution list contains spaces, and it keeps coming back as an unknown recipient. Here's the code, it's pretty simple: ActiveWorkbook.SendMail _ Recipients:=EmlAddr & ";" & CCAddr, _ Subject:=FleNme The variables: EmlAddr = " CCAddr = " CCI HRD - LNP Support" I realize, of course that this is all going in to the To: line and that you can't use an actual CC with sendmail, but that's not really a big deal to me. CCAddr is the distribution list. Any suggestions? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Distribution list from Excel | Excel Discussion (Misc queries) | |||
Send sheet to selected distribution list using VBA | Excel Programming | |||
Excel Distribution list | Excel Discussion (Misc queries) | |||
Send mail from vba with the outlook distribution list | Excel Programming | |||
Problems with SendMail or automation of Send To | Excel Programming |