+ Reply to Thread
Results 1 to 3 of 3

Change font and background color of several cells based on result of a formula

  1. #1
    Registered User
    Join Date
    04-24-2006
    Location
    Nevada
    Posts
    16

    Question Change font and background color of several cells based on result of a formula

    I have a workbook that has 6 spreadsheets in it. The layout of all 6 spreadsheets is identical. The information they contain is different.

    I cell W27 > T29 then I want the background color and font color for cells V26:W29 to be ColorIndex 40. If the result is false, I don't want any changes.

    I know how to do conditional formatting but I don't see how it would work with what I want to do.

    Is there code I could use in the worksheet event?

    Thanks for your time.
    Last edited by Zenaida; 04-27-2006 at 12:38 PM. Reason: Change email notification.
    Zenaida

  2. #2
    Bob Phillips
    Guest

    Re: Change font and background color of several cells based on result of a formula

    CF would easily work, select all sheets, select V26:W29 and use a formula of

    =$W$27>$T$29

    and format the colour to that colorindex.



    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Zenaida" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I have a workbook that has 6 spreadsheets in it. The layout of all 6
    > spreadsheets is identical. The information they contain is different.
    >
    > I cell W27 > T29 then I want the background color and font color for
    > cells V26:W29 to be ColorIndex 40. If the result is false, I don't
    > want any changes.
    >
    > I know how to do conditional formatting but I don't see how it would
    > work with what I want to do.
    >
    > Is there code I could use in the worksheet event?
    >
    > Thanks for your time.
    >
    >
    > --
    > Zenaida
    >
    >
    > ------------------------------------------------------------------------
    > Zenaida's Profile:

    http://www.excelforum.com/member.php...o&userid=33802
    > View this thread: http://www.excelforum.com/showthread...hreadid=536883
    >




  3. #3
    Registered User
    Join Date
    04-24-2006
    Location
    Nevada
    Posts
    16
    Thanks for helping me get my brain out of "stuck" mode. I used your formula with CF and it works perfect! Thanks again.

+ 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