ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   conditional formating when cell value changes original (https://www.excelbanter.com/excel-discussion-misc-queries/146266-conditional-formating-when-cell-value-changes-original.html)

Ed

conditional formating when cell value changes original
 
How can I use conditional formating or another function to indicate when the
original cell value has been edited or changes?

Example: I have a spreadsheet with values that must be edited when I receive
new value. Later I must know which values have changed so I can transmit them
to the central office.
Thanks for any help you can provide.

Bob Phillips

conditional formating when cell value changes original
 
Private Sub Worksheet_Change(ByVal Target As Range)

On Error GoTo ws_exit
Application.EnableEvents = False

With Target
.Interior.ColorIndex = 38
End With

ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Ed" wrote in message
...
How can I use conditional formating or another function to indicate when
the
original cell value has been edited or changes?

Example: I have a spreadsheet with values that must be edited when I
receive
new value. Later I must know which values have changed so I can transmit
them
to the central office.
Thanks for any help you can provide.





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

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