+ Reply to Thread
Results 1 to 10 of 10

Changing background color when changing value

  1. #1
    blommerse@gmail.com
    Guest

    Changing background color when changing value

    Hi there,

    I was wondering if it is possible to change the background color if
    someone changing the value of a cell, or put in a new text in a cell.
    I think it is only possible with a VBA code...

    Can anybody help me?

    Cheerio


  2. #2
    Jim May
    Guest

    Re: Changing background color when changing value

    It's also available with Conditional Formatting (Menu, Format,
    Conditional Formatting). See Help for details


    "blommerse@gmail.com" <blommerse@gmail.com> wrote in message
    news:1152181407.047597.67070@m79g2000cwm.googlegroups.com:

    > Hi there,
    >
    > I was wondering if it is possible to change the background color if
    > someone changing the value of a cell, or put in a new text in a cell.
    > I think it is only possible with a VBA code...
    >
    > Can anybody help me?
    >
    > Cheerio



  3. #3
    blommerse@gmail.com
    Guest

    Re: Changing background color when changing value

    Thanks Jim,

    But when the value from the formule is changing it is not possible to
    do it like you why.
    Actually I need a code or something that said: When changing
    value...background turn into red.

    Hope you've got something.

    Cheers


  4. #4
    Jim May
    Guest

    Re: Changing background color when changing value

    Not sure what you are saying, better give a complete specific example.
    <<because Conditional Formatting would recognize change based on recalcs
    (other formulas)>>.

    "blommerse@gmail.com" <blommerse@gmail.com> wrote in message
    news:1152182257.960731.229750@75g2000cwc.googlegroups.com:

    > Thanks Jim,
    >
    > But when the value from the formule is changing it is not possible to
    > do it like you why.
    > Actually I need a code or something that said: When changing
    > value...background turn into red.
    >
    > Hope you've got something.
    >
    > Cheers



  5. #5
    blommerse@gmail.com
    Guest

    Re: Changing background color when changing value


    I will give you an example

    The value of the formule is 999, when the value of the formule change
    to 1000, the back ground color of the cell have to change into red.
    Do you understand now??
    Greets


  6. #6
    Scoops
    Guest

    Re: Changing background color when changing value


    blommerse@gmail.com wrote:
    > Thanks Jim,
    >
    > But when the value from the formule is changing it is not possible to
    > do it like you why.
    > Actually I need a code or something that said: When changing
    > value...background turn into red.
    >
    > Hope you've got something.
    >
    > Cheers


    Hi blommerse

    Try this in the worksheet's code:

    Private Sub Worksheet_Change(ByVal Target As Range)
    Target.Interior.Color = vbRed
    On Error Resume Next
    Target.Dependents.Interior.Color = vbRed
    End Sub

    Remove the On Error... and ...Dependents... lines if they are not
    needed.

    Regards

    Steve


  7. #7
    Jim May
    Guest

    Re: Changing background color when changing value

    Sorry blommerse, but let's say
    Your formula is in cell A3 =A1+A2
    A1 = 500
    A2 = 499

    Select A3 - Menu, Format, Conditional Formatting,
    Select CellValueIs in first box select "greater than"
    In Next Box enter 999 - Click Format button - Pattern
    Select RED.

    OK, OK...

    Change a2 to 500
    What happens?



    "blommerse@gmail.com" <blommerse@gmail.com> wrote in message
    news:1152185526.792151.80380@m79g2000cwm.googlegroups.com:

    > I will give you an example
    >
    > The value of the formule is 999, when the value of the formule change
    > to 1000, the back ground color of the cell have to change into red.
    > Do you understand now??
    > Greets



  8. #8
    blommerse@gmail.com
    Guest

    Re: Changing background color when changing value

    It is working when I open a new book, but not in my sheet.
    There nothing strange on my sheet, also not protected.
    Don't know what's wrong...


  9. #9
    blommerse@gmail.com
    Guest

    Re: Changing background color when changing value

    It is working when I open a new book, but not in my sheet.
    There nothing strange on my sheet, also not protected.
    Don't know what's wrong...


  10. #10
    blommerse@gmail.com
    Guest

    Re: Changing background color when changing value

    Maybe did't give you specific enough info.. I hoped it was as simple as
    you typed.

    But my workbook has over 700 rows. in column E between 1-700.000. all
    the rows can change. What I want to see is that in column E, when a
    value is changing, the cell turned red, so I can see which one has
    changed.
    Unfortunatelly it can't be done in your way.

    Hope you've got something else...


+ 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