+ Reply to Thread
Results 1 to 5 of 5

Validate active cell and prevent mail from firing.

  1. #1
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    Validate active cell and prevent mail from firing.

    Hello, i am trying to get some assistance with the code below. In active cell row "S", each time the value changes, it should trigger an email and color the row a specific color, that part works okay. However, to prevent it from firing when it shouldn't, I want to validate it by using the cell color as a check, if the cell color is green, it means the mail was already sent for example, so it shouldnt send it again if selected.

    In the code here, it should be, if the active cell row "S" colorindex = 4, then dont fire the mail again. I have been trying but each time i get close to solving it, it messes up something else in the code, kindly help please.

    Please Login or Register  to view this content.
    Last edited by kmakjop; 06-02-2015 at 09:52 AM.

  2. #2
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    Re: Validate active cell and prevent mail from firing.

    any help here please?

  3. #3
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    Re: Validate active cell and prevent mail from firing.

    Any suggestions please?

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Validate active cell and prevent mail from firing.

    Sounds like you need an initial IF test

    If Cells(ActiveCell.Row, "S").Font.ColorIndex <> 4 Then
    ....rest of your code
    End If
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    Re: Validate active cell and prevent mail from firing.

    Thank you for responding Richard, i didnt saw that you did. I actually came up with something like what you suggested, see below and tell me if what i have so far will be okay. I am actually checking for five different values, below is one of the five checks, the coding for all five are the same, just the and msgbox contents and the mail type that is called is different.

    Please Login or Register  to view this content.

+ 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. Replies: 2
    Last Post: 07-31-2012, 10:00 PM
  2. How to prevent SelectionChange event firing before Change event?
    By franklyn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2012, 05:17 AM
  3. How to e-mail selected row and use e-mail address in a cell to send e-mail from excel
    By syedalamgir in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2010, 02:15 AM
  4. Validate in WS to prevent dual data entry
    By Jonah in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-10-2006, 01:25 AM
  5. [SOLVED] how do I format a cell to validate for an e-mail address ( @ .com.
    By RmeAV8tor in forum Excel General
    Replies: 5
    Last Post: 03-10-2005, 08:06 PM

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