Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Range = Range("A1") Then
If Range("A1").Value <> Range("A2").Value Then
Range("C1").Value = Range("C1").Value + 1
Range("A2").Value = Range("A1").Value
End If
End If
End Sub
that's the code however when i copy paste a set off cell, let's say 2 columns and 3 rows it produce runtime error 13 type mismatch on line
If Target.Range = Range("A1") Then
why? i simply wants the vba to do something everytime cell A1 changes the value of A1 itself is an excel sum formula