+ Reply to Thread
Results 1 to 6 of 6

Send different file to each person in a range

  1. #1
    Registered User
    Join Date
    02-28-2012
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    37

    Send different file to each person in a range

    Hi guys,

    I am having a small problem with one of Ron de Bruin's macros. I hope one of you can help me with it.

    In the workbook attached, I have the names in column A, e-mails addresses in column B, an auxiliary file in column C and the file to be attached in column D.

    I would like to have two different macros: one that would send the e-mails in rows 2-7 and the other to send the e-mails in rows 10-18, always attaching only the file in column D.

    How can I modify the following code to make it work?

    Thanks in advance!!!

    Please Login or Register  to view this content.
    Example2.xlsx
    Last edited by pedrofogao21; 03-30-2012 at 08:42 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Send different file to each person in a range

    I think that's the wrong file you attached.

    Meanwhile, maybe this:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-28-2012
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Send different file to each person in a range

    Sorry about that, I have the correct file now. I'll test your suggestion shortly and get back to you.

    Thanks!

  4. #4
    Registered User
    Join Date
    02-28-2012
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Send different file to each person in a range

    Hi JBeaucaire, I tried your suggestion, but it still attaches every file (everything in columns C and D) in every e-mail.

    Perhaps you could solve it now that I posted the correct file (1st post)

    Thanks again!

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Send different file to each person in a range

    Try this:
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-28-2012
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Send different file to each person in a range

    It works perfectly

    Thanks a lot, Jerry

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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