Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50194

Highlight changed cells without using the tracking changes function

$
0
0
Hello!

I am looking for a way to highlight cells in which data has been changed, with the sole purpose of keeping track of what I have done - this is not a shared file. I have tried sharing the workbook and tracking changes but I want the whole cell to be highlighted and noticeably so. The small triangle in the corner is just not cutting it.

I found this code, and it does exactly what I want - except it appears to disable the undo function, which is simply unacceptable.

Code:

Private Sub WorkSheet_Change(ByVal Target As Range)
Target.Interior.ColorIndex = 6
End Sub

Is there a way to use this code without disabling the undo function? Could somebody explain why that is happening?

Thank you!

Viewing all articles
Browse latest Browse all 50194