+ Reply to Thread
Results 1 to 6 of 6

Varying range in Email function

  1. #1
    Registered User
    Join Date
    06-24-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    32

    Varying range in Email function

    I have built a function from a worksheet that creates a personalized email based on data entered in other sheets.

    I have a maximum 75 email addresses. The number of people to be mailed varies each time from 1-75. How do I look up and create on the correct number of emails based on how many have been selected? Below is the code I am using, but currently this creates 75 mails. Thanks

    Please Login or Register  to view this content.
    Last edited by Leith Ross; 05-03-2011 at 04:40 PM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Varying range in Email function

    Hello damage,

    You can find the last cell in the column with data several ways. Here is one way to do it...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    06-24-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Varying range in Email function

    Thanks, that seems to have worked to stop picking up the blanks, but has changed the format of the emails it has created. I think I have screwed up the code. Going to have a play with it and will be back, but thanks for getting me this far.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Varying range in Email function

    Hello damage,

    If you can not get it work, post the workbook. Be sure to disguise any personal information before posting it.

  5. #5
    Registered User
    Join Date
    06-24-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Varying range in Email function

    I got it working now.

    I do need to add a couple of extra functions to this macro.

    1) a copy and paste of some date
    2) cc another email address
    3) add attachments

    Can anyone help with these.
    Last edited by damage; 05-03-2011 at 05:52 PM.

  6. #6
    Registered User
    Join Date
    06-24-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Varying range in Email function

    can anyone help with the above?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1