+ Reply to Thread
Results 1 to 10 of 10

Changle Font Colour of a Row using Conditional Formatting

Hybrid View

  1. #1
    Registered User
    Join Date
    10-02-2007
    Location
    Buckinghamshire, England
    MS-Off Ver
    2013
    Posts
    61

    Changle Font Colour of a Row using Conditional Formatting

    Hi,

    I'm currently trying to use conditional formatting to change a colour of the font in a row.

    For example if you put a certain word into cell A1 it will change the colour of the text to green in cells A1 to A5. Just wondering how this can be done?

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Select A1 to A5 then place this formula into CF

    =$A1="Your Text"
    format as required. Change Your Text to your criteria

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520
    Hi Madball,

    Go to conditional formatting, select formula is and put
    =$A$1:$A$5 <> ""
    In the format select, go to pattern tab and select color green.
    Corine

  4. #4
    Registered User
    Join Date
    10-02-2007
    Location
    Buckinghamshire, England
    MS-Off Ver
    2013
    Posts
    61
    :S Errm it works a little, but not 100%.

    OK let me try and show you how I've tried it so far, see where I'm going wrong. First off in cell I 39 I want to be able to put in either Sick, Holiday or absent. If the cell has Sick in it, I want it to turn cells A39 to I39 green. Currently when I try the two ideas above they don't seem to work, one of them just turns the text green with or without the word SICK in there.

    =$A$39:$I$39 <> "SICK"
    this is what I've tried in the code.
    Last edited by Madball; 10-22-2007 at 06:21 AM.

  5. #5
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520
    Hi Madball,

    In cell A39
    conditional formatting =$A$39 = "sick"

    In cell A40
    conditional formatting =$B$39 = "sick" and so on.

    should be entered one by one in each cell.

    Maybe there's a better way to do this.
    Last edited by corinereyes; 10-22-2007 at 07:54 AM.

  6. #6
    Registered User
    Join Date
    10-02-2007
    Location
    Buckinghamshire, England
    MS-Off Ver
    2013
    Posts
    61
    Ah OK I understand now sorry for the confusion

  7. #7
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Just select columns A to I and enter this one formula

    =$A1="Sick"
    VBA Noob

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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