+ Reply to Thread
Results 1 to 5 of 5

Change Row Font Color based on criteria in named range

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2013
    Posts
    71

    Change Row Font Color based on criteria in named range

    Hello,
    I'm trying to change the font color of the entire row for any cells containing the value of "000" in a named range. I've created the code below, but keep getting a Type mismatch error at the following line (f rng1.Value = "000" Then). Please tell me what I am doing wrong. Entire code is listed below.

    Please Login or Register  to view this content.
    Any assistance is greatly appreciated.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Change Row Font Color based on criteria in named range

    Not sure if this may be the problem, but I dont think you can have a value of 000, it will just be 0. Maybe that should be text?

    Also, have you considered usung just plain old Conditional Formatting instead of VBA?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: Change Row Font Color based on criteria in named range

    If SEQ1 is the Named Range then,

    Please Login or Register  to view this content.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    09-05-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2013
    Posts
    71

    Re: Change Row Font Color based on criteria in named range

    Hi FDibbins,
    I've done conditional formatting for certain cells within a single column, but not an entire row for multiple columns based on cell content within a column. How would I do that?

  5. #5
    Registered User
    Join Date
    09-05-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2013
    Posts
    71

    Re: Change Row Font Color based on criteria in named range

    protonLeah,
    It works awesome!! Thank you very much!

+ 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 Font Color Based On Adjacent Cell Color
    By Zorro9758 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2013, 02:47 PM
  2. VBA to change font color of range of cells based on text not in another cell
    By tk31271 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-30-2013, 09:36 AM
  3. Change font color based on font color of another cell
    By Ibyers in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2012, 09:36 AM
  4. [SOLVED] changing row font color based on 3 criteria
    By ariel20029 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-28-2012, 02:15 PM
  5. Change Font Color in a Range based on One Cells information
    By mrgillus in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-28-2009, 11:58 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