Can anyone please help on Excel VBA coding, I want to change the colors of cells when the values are changed on single go with copy paste on certain range, say "A1:B10"
I am able to perform for a single cell copy paste as below , but not sure how to perform the same for multiple cells,
If Not Intersect(Target, Range("B2:K20")) Is Nothing Then
If oldValue <> Target.Value Then
Target.Interior.Color = RGB(184, 245, 198)
End If
End If
oldValue
? is this inside someWorksheet_Change()
event handler and you want to monitor any actual change? you may want to add some more detail – DisplayName