+ Reply to Thread
Results 1 to 7 of 7

Send an email if the value of the cell is zero

  1. #1
    Registered User
    Join Date
    03-09-2017
    Location
    Monrovia
    MS-Off Ver
    2013
    Posts
    57

    Send an email if the value of the cell is zero

    I have a worksheet which contains several columns. The 2 columns that are of importance here are Column AB and AD.
    Column AB contains formulas and Column AD contains email addresses. Is there a way where if the value of a row in column AB is 0 then when I click on the email button all the rows with the value 0 will have an email sent from outlook asking to send in their data?
    Attached Files Attached Files

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,522

    Re: Send an email if the value of the cell is zero

    Let's start with this.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,026

    Re: Send an email if the value of the cell is zero

    Hi bakerman2.....Any chance of storing the recipients email addresses in an array during the loop and after the loop completes, then send off one email to all at once....
    Something like:
    Please Login or Register  to view this content.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  4. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,026

    Re: Send an email if the value of the cell is zero

    Perhaps like such?....please excuse the use of your code...Hope it's right.
    Please Login or Register  to view this content.
    EDITED: Extra code applied from Warship
    Last edited by Sintek; 05-03-2017 at 06:22 AM.

  5. #5
    Registered User
    Join Date
    03-09-2017
    Location
    Monrovia
    MS-Off Ver
    2013
    Posts
    57

    Re: Send an email if the value of the cell is zero

    Thank you @bakerman2 and @sintek for your contribution.

  6. #6
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,026

    Re: Send an email if the value of the cell is zero

    Glad I could contribute...thanks fro rep point added

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,522

    Re: Send an email if the value of the cell is zero

    You're welcome and thanks for rep+.

    @ sintek
    If the mail doesn't need to be personalized you it's indeed better to do it the way you suggested.

+ 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. Condition on sendint email or not to send email by a yes no in a cell
    By toofani in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2015, 04:35 AM
  2. Workflow with signatures (if cell=x then send email, if signed then send email)
    By Kate2811 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2014, 05:37 AM
  3. How to send email from excel using VBA with Cell Range (Including Images) as Email Body
    By Novice_To_Excel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2014, 05:06 AM
  4. Using VBA to send Email by selecting email from a cell within a worksheet
    By sm.salford in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2013, 01:58 PM
  5. Send New Email W/ Body of Received Email, Then Delete Sent Email
    By edneal2 in forum Outlook Formatting & Functions
    Replies: 2
    Last Post: 07-01-2013, 12:45 AM
  6. Auto send email with the cell value that triggered the email in the first place.
    By coobey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-02-2013, 05:40 PM
  7. Send Email When Cell Value Changes
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-18-2006, 10:30 AM

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