nareshjoshy
New Member
- Joined
- Mar 6, 2019
- Messages
- 23
Hello sir,
I'm using code:
but it shows runtime error 8.
Please help me to sove this problem.
Thanks in advance.
I'm using code:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("R2:R21")) Is Nothing Then
Cells(Target.Row, "S") = BS2AD(Cells(Target.Row, "R"))
Exit Sub
ElseIf Not Intersect(Target, Range("S2:S21")) Is Nothing Then
Cells(Target.Row, "R") = AD2BS(Cells(Target.Row, "S"))
Exit Sub
End If
If Not Intersect(Target, Range("T2:T21")) Is Nothing Then
Cells(Target.Row, "U") = BS2AD(Cells(Target.Row, "T"))
Exit Sub
ElseIf Not Intersect(Target, Range("U2:U21")) Is Nothing Then
Cells(Target.Row, "T") = AD2BS(Cells(Target.Row, "U"))
Exit Sub
End If
If Not Intersect(Target, Range("V2:V21")) Is Nothing Then
Cells(Target.Row, "W") = BS2AD(Cells(Target.Row, "V"))
Exit Sub
ElseIf Not Intersect(Target, Range("W2:W21")) Is Nothing Then
Cells(Target.Row, "V") = AD2BS(Cells(Target.Row, "W"))
Exit Sub
End If
End Sub
but it shows runtime error 8.
Please help me to sove this problem.
Thanks in advance.