Hello everyone,
I'm back here for help again so please bear with me.
I have a vba code that is triggered when there is a change in a range of cells. It works well if the changes are done cells by cells but i get an error in the case if i were to copy and paste for multiple cells in one go.
I hope you can help me adjust it so the code can still work if i were to copy and paste
here is the current VBA code
thank you !
I'm back here for help again so please bear with me.
I have a vba code that is triggered when there is a change in a range of cells. It works well if the changes are done cells by cells but i get an error in the case if i were to copy and paste for multiple cells in one go.
I hope you can help me adjust it so the code can still work if i were to copy and paste
here is the current VBA code
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("B20:C35")) Is Nothing Then
If Target.Value <> OldValue Then
Target.Interior.Color = vbWhite
Target.Borders.LineStyle = xlNone
End If
End If
End Sub
thank you !