ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Changing background color when changing value (https://www.excelbanter.com/excel-programming/366407-changing-background-color-when-changing-value.html)

[email protected]

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


Jim May

Changing background color when changing value
 
It's also available with Conditional Formatting (Menu, Format,
Conditional Formatting). See Help for details


" wrote in message
ups.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



[email protected]

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


Jim May

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).

" wrote in message
ups.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



[email protected]

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


Scoops

Changing background color when changing value
 

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


Jim May

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?



" wrote in message
ups.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



[email protected]

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...


[email protected]

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...


[email protected]

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...



All times are GMT +1. The time now is 12:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com