+ Reply to Thread
Results 1 to 5 of 5

changing cell colour using based on cell value

  1. #1
    Registered User
    Join Date
    12-23-2006
    Posts
    10

    Talking changing cell colour using based on cell value

    Hi all

    Is there a way to have the cell colour change based on the number withing the cell.

    If for example the cell A1 shows 0 as default, I would to change Cell B1 for example to say red?

    Can this be done?

    Or is there another way to do it, i.e. by using =if

    Cheers

  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
    Hi,

    Use conditional formatting. Select Cell B1 and enter this in C. formatting

    =$A1=0

    Link should help

    http://www.contextures.com/xlCondFormat01.html

    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
    Registered User
    Join Date
    12-23-2006
    Posts
    10
    Thanks for the reply.

    I've never come across Cond Formatting, I shall have a play with it.

    Thanks

  4. #4
    Registered User
    Join Date
    12-23-2006
    Posts
    10
    Cheers

    I have used the Cond Formatting feature and it has solvedd my problem.

    Thanks

  5. #5
    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
    Glad to hear it

    Thanks for the feedback

    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