Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default Use of a range as an email address in a .SendMail array

Rather then hard wiring the email addresses into the code I wish to
place it in the worksheet then define it as a Range and input the
range in the array as shown below.



How can I get it to work, I think I need something other than .Value



Dim MyPath5 As String, MyRange5 As Range

Set MyRange5 = MyWBConvertor.ActiveSheet.Range("D1")

MyPath5 = MyWBConvertor.Path



''''''''''''''''''''''''''''''''''''''

MyWBLnkZn.SendMail Recipients:=Array("MyRange5")



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Use of a range as an email address in a .SendMail array

Hi Simon

See
http://www.rondebruin.nl/mail/tips1.htm

Dim MyArr As Variant
MyArr = ThisWorkbook.Sheets("Sheet1").Range("A1:A20")
.SendMail MyArr, "This is the Subject line"



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Simon" wrote in message ...
Rather then hard wiring the email addresses into the code I wish to
place it in the worksheet then define it as a Range and input the
range in the array as shown below.



How can I get it to work, I think I need something other than .Value



Dim MyPath5 As String, MyRange5 As Range

Set MyRange5 = MyWBConvertor.ActiveSheet.Range("D1")

MyPath5 = MyWBConvertor.Path



''''''''''''''''''''''''''''''''''''''

MyWBLnkZn.SendMail Recipients:=Array("MyRange5")



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
adjust .Sendmail for mutiple recipients on internal email network J.W. Aldridge Excel Programming 1 July 9th 08 06:55 PM
Send data from Excel in email from specific email address Erik Excel Programming 5 December 5th 07 05:09 PM
can I copy a column of email addresses, paste into email address? Lizizfree New Users to Excel 4 July 20th 06 10:03 PM
Transfer Email addresses from spreadsheet to email address book Beana Excel Discussion (Misc queries) 2 May 30th 06 06:07 PM


All times are GMT +1. The time now is 03:29 AM.

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

About Us

"It's about Microsoft Excel"