+ Reply to Thread
Results 1 to 5 of 5

auto change font colour of a row when using dropdown

  1. #1
    Registered User
    Join Date
    11-13-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    13

    auto change font colour of a row when using dropdown

    Hi All,

    I have a spread sheet that I need to add a function to.

    In column B I have a drop down (validation list) consisting of just blank cell and L.
    what I need is for each row where the drop down has been set to L, to make the text in the entire row to change to red.

    Is this possible and if so how do I do this please?

    Thanks jeff

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: auto change font colour of a row when using dropdown

    You can use conditional formatting to do this. Highlight all the cells to be affected, then click Conditional Formatting | New Rule | Use a Formula ..., then put this formula in the box:

    =$B2="L"

    (NOTE: this assumes that row 2 is the first highlighted row - change the 2 if different)

    Then click on the Format button, choose the Color drop-down and click on Red. Then you can OK your way out and Excel will automatically adjust the formulae to suit the cells you had highlighted.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    11-13-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: auto change font colour of a row when using dropdown

    Hi Pete_UK,

    Thanks for the reply, it worked perfectly. Could this also work with multiple items in a list and work on several pages all refering to a list on the first page pleasse?

    Cheers Jeff

  4. #4
    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
    53,047

    Re: auto change font colour of a row when using dropdown

    If you are using 2003 (as per your profile), you can only have 3 rules

    Also, up to 2007, Conditional Formatting cannot (directly) reference other sheets, so you need to put your criteria into a named range, and then reference thae name in CF
    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

  5. #5
    Registered User
    Join Date
    11-13-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: auto change font colour of a row when using dropdown

    Hi FDibbins,

    Thanks for your reply, I am using 2007 (I forgot to change that on my profile :s) does that mean I'm still limited to ref the same sheet?

    Thanks Jeff

+ 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. [SOLVED] change of font colour or background colour vba
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-22-2014, 08:20 PM
  2. Change Font Colour If
    By stage.fright in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-13-2010, 01:30 PM
  3. [SOLVED]Auto change row/font colour and move row
    By auntsally in forum Excel General
    Replies: 3
    Last Post: 10-27-2009, 04:03 PM
  4. Font Colour Change
    By yuzi in forum Excel General
    Replies: 5
    Last Post: 03-30-2009, 11:27 AM
  5. Change Event to change Font to bold and colour Index
    By Wskip49 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-21-2008, 02:38 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