+ Reply to Thread
Results 1 to 11 of 11

Loop through rows and send mail with incremented details each time criteria is met.

  1. #1
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Loop through rows and send mail with incremented details each time criteria is met.

    Good Day All

    I have some code from @RonDeBruin that is adapted to work for my specific purposes, however i do not know how to make it loop through the rows and increment the ranges each time the criteria is met.

    Unfortunately my file is too big to upload,but here is the details and the code.

    The criteria is "YES" in Column O
    So, each time "Yes" is found in Column O, The highlighted sections in the code needs to increment to the row number corresponding where the "YES" was found.
    Each time "Yes" is found needs to produce a new mail.

    Please Login or Register  to view this content.
    Thanks in advance for any help.

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Loop through rows and send mail with incremented details each time criteria is met.

    I recently made similar changes using the information at this link https://www.excelforum.com/excel-pro...ook-email.html. Links to source pages are included. Cheers

  3. #3
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: Loop through rows and send mail with incremented details each time criteria is met.

    thank you @maniacb, but this is a completely different scenario. The code above already sources and sends the data to mail. What i need is a loop that will increment the code values to suit where the criteria is found. thank you for trying to assist though.

  4. #4
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: Loop through rows and send mail with incremented details each time criteria is met.

    any ideas anyone?

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Loop through rows and send mail with incremented details each time criteria is met.

    Please do not PM me.


    Hi

    I see that you are having a loop at my thread https://www.excelforum.com/excel-pro...ia-is-met.html
    would you be able to assist in any way please.

    If you post on the forum you have the reach of all forummembers.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,171

    Re: Loop through rows and send mail with incremented details each time criteria is met.

    Administrative Note:

    Andreaas - you have been a member here for a long time and should know that messaging other members asking them to help with your issues is not allowed. Unfortunately, you have violated Rule #8 of our Forum RULES:

    Don't private message, visitor message or email Excel (or Access, Word, etc.) questions to moderators or other members.

    All questions and answers will benefit other posters like yourself when discussed in public threads. The point of having a public forum is to share solutions to common (and sometimes uncommon) problems with all members.

    Breaking this rule is considered harassment by most of our contributors and thus cannot be tolerated. Repeat offense could lead to a permanent ban, so do take this caution to heart.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Loop through rows and send mail with incremented details each time criteria is met.

    Since this is an open forum, I share this comment with the other forummembers.


    Alltough it is allowed to give a negative rep, I want to share that I received a negative rep.


    Thread: Loop through rows and...

    no need to be nasty, i just noticed that you were looking at this thread while i was browsing

  8. #8
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: Loop through rows and send mail with incremented details each time criteria is met.

    very mature.

  9. #9
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: Loop through rows and send mail with incremented details each time criteria is met.

    AliGW

    The intent was not for the member to help in private away from this thread. The member was actively looking at the thread at that time and i asked if he/she would be able to assist with the thread, i did not ask to be helped in private where it would not benefit the community, but to get nasty about it from the member and then acting immature about negative rep in response to being nasty is an issue.

    Rule #8 was never broken. I did not message any excel, access or word question. I asked if the person looking at the thread would help with that specific thread that he/she was browsing.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,171

    Re: Loop through rows and send mail with incremented details each time criteria is met.

    The reason that what you did is not allowed is to protect members, particularly those who are very active here, from a barrage of visitor and private messages prompting them to look at threads. As I am sure you will realise, if you look at it the other way around, this would very quickly become unmanageable with members’ mailboxes filling up with requests like yours. That’s why it’s not allowed. There is no way to fast track a resolution to your problem: you just have to be patient. Sorry.

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Loop through rows and send mail with incremented details each time criteria is met.

    @ANDREAAS

    If I look at a question, I explore if I could provide a solution.

    If not, I will not answer.

    How about a lot of members adding to your question, they don't have an anser for you.

    Would that be helpfull for you?

+ 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. VBA Help - Loop to check/count against rows using date & time criteria
    By bellpiero11 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-02-2017, 01:09 PM
  2. [SOLVED] Send Mail to All if criteria is met
    By Rui Farinha in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-12-2016, 08:03 AM
  3. [SOLVED] Send mail, loop, Body of the message
    By Fean in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-24-2015, 05:22 AM
  4. split/separate rows based on criteria and send those rows by mail
    By katu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-09-2014, 08:59 AM
  5. Replies: 1
    Last Post: 03-11-2014, 12:24 PM
  6. Need to Send the E-Mail as per Defined Criteria!
    By Rajeshkumar R in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2013, 07:15 AM
  7. Replies: 2
    Last Post: 04-14-2005, 07:06 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