+ Reply to Thread
Results 1 to 2 of 2

How to nesting For Each range in range multiple criteria

  1. #1
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    How to nesting For Each range in range multiple criteria

    What I am trying to do -
    I am trying to write a macro that creates an email, attaches file A from a list and file B from another list, and sends it to 4 recipients that change for each email and set of files. There are 200+ files and 100+ recipients. Each file is different and most of the recipients are different as well. The number of emails i need to send match the data in each row.

    For example, row 1 is one email, the files that need to go in it are in row 1 column P and row 1 column Q, the recipients are in row 1 as well in columns T, U, and V, and a constant email that doesn't change in cell W1.
    The second email would be row 2, attaching files from column P row 2 and column Q row 2, the recipients for this email would be in row 2 columns T, U, and V, along with the constant email in cell W1.
    Etc....

    Here is the code i have written that is not working. It continues to loop through the column V and doesn't change the other criterias. Please help me fix the code i have if possible otherwise a solution at all if greatly appreciated.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: How to nesting For Each range in range multiple criteria

    I figured out a way to make it work. If your interested just ask how. I will post if any are interested. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro DtRNG as Range, Dt as Range, Multiple Criteria or dates
    By Jack7774 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 03-18-2013, 03:46 PM
  2. Replies: 3
    Last Post: 11-21-2012, 04:57 PM
  3. Replies: 6
    Last Post: 11-11-2012, 12:40 AM
  4. Replies: 1
    Last Post: 05-16-2011, 05:00 PM
  5. Replies: 3
    Last Post: 06-10-2006, 06:10 AM

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