Hi to all
I need some help to change the code that I use to copy value...
This code I use:
If I do any changes to B2, it will copy A2 to C2
If I do any changes to B3, it will copy A2 to C3
And so on...
When I add new row (for example insert value to B4), I need to update my code that will do the same copy to C4
Can someone help me to change the code that will do what I want without every time updating VBA code ?
Thanks
I need some help to change the code that I use to copy value...
This code I use:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range
If Not Intersect(Target, Range("B2")) Is Nothing Then
Set rng = Range("C2")
rng.Value = Range("A2")
Else
If Not Intersect(Target, Range("B3")) Is Nothing Then
Set rng = Range("C3")
rng.Value = Range("A2")
End If
End If
End Sub
If I do any changes to B2, it will copy A2 to C2
If I do any changes to B3, it will copy A2 to C3
And so on...
When I add new row (for example insert value to B4), I need to update my code that will do the same copy to C4
Can someone help me to change the code that will do what I want without every time updating VBA code ?
Thanks