Hi all,
I have some vba running on my sheet that colour fills a cell if it is changed.
Current code is this:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A5:F2000")) Is Nothing Then Target.Interior.Color = rgbBeige
End Sub
However - I am pasting values into cells with another macro - and I only want the cells to be colour filled if the pasted value is different from the value that was in the cells in the first place.
Thanks
Tom
I have some vba running on my sheet that colour fills a cell if it is changed.
Current code is this:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A5:F2000")) Is Nothing Then Target.Interior.Color = rgbBeige
End Sub
However - I am pasting values into cells with another macro - and I only want the cells to be colour filled if the pasted value is different from the value that was in the cells in the first place.
Thanks
Tom
Last edited: