+ Reply to Thread
Results 1 to 7 of 7

Change cell colour if condition not met

  1. #1
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    165

    Change cell colour if condition not met

    I have this code work fine for me but I want if there is way to if condition are not met then those cell change to green colour. It is easy to understand but still some of them are not understand about F28 or I41. So I want to add little more in this macro so when macro run the cell colour change to green and message pop up then may be easier for some person to understand which cell they need to focus.
    when macro end then these cell go back to normal colour

    here is the code

    Please Login or Register  to view this content.
    Last edited by robrobet; 07-31-2013 at 03:44 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Change cell colour if condition not met

    Just use Conditional Formatting. Select cells F28 & I41 and enter the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and choose your fill color.
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    165

    Re: Change cell colour if condition not met

    I want to make some kind alert for people who use this sheet to show in colour, when message pop up check the total match it also highlight those in cell in colour,as soon I hit ok on message box that change back to white. same thing for second alert pop up then it show range n8 to n14 in colour to which cell they need to fill out.

    Thanks for advice and your time
    RR

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Change cell colour if condition not met

    You should use Data Validation with Conditional Formatting:
    Attached Files Attached Files
    Last edited by protonLeah; 08-02-2013 at 09:12 PM.

  5. #5
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    165

    Re: Change cell colour if condition not met

    How I do chose Data Validation for range n8 to n14, I want if user fill g8 then they must fill n8, if g8 is blank then they can not put any number in n8.

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Change cell colour if condition not met

    That's a different problem from the original so you should start a new thread. Most members won't bother with a thread that's already been going on for several days.

  7. #7
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    165

    Re: Change cell colour if condition not met

    Thanks For reply
    RR

+ 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. Change Column Colour Based on Condition
    By redo23 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-30-2013, 06:42 AM
  2. Replies: 1
    Last Post: 06-12-2012, 08:12 AM
  3. Change the colour of a Row when a condition changes in a cell
    By Philw56 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-03-2011, 05:15 AM
  4. Choosing offset on condition found in combobox change colour of cell??
    By Simon Lloyd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2006, 07:53 PM
  5. Change the Row Colour, using a cell condition
    By belgarth58 in forum Excel General
    Replies: 1
    Last Post: 02-07-2006, 03:42 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