Hello I am new in Excel and I would thank a lot if someone can help me.
I wrote this code with linked dropdown lists in cells:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$S$4" Then
Range("$T$4").Value = Empty
End If
If Target.Address = "$S$5" Then
Range("$T$5").Value = Empty
End If
If Target.Address = "$S$6" Then
Range("$T$6").Value = Empty
End If
End Sub
I need to do the same process till the end of the worksheet (for example S7 with T7, S8 with T8, S9 with T9 and so on) but I do not know how to do it without writing one by one. Can someone Kindly help me please?
I wrote this code with linked dropdown lists in cells:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$S$4" Then
Range("$T$4").Value = Empty
End If
If Target.Address = "$S$5" Then
Range("$T$5").Value = Empty
End If
If Target.Address = "$S$6" Then
Range("$T$6").Value = Empty
End If
End Sub
I need to do the same process till the end of the worksheet (for example S7 with T7, S8 with T8, S9 with T9 and so on) but I do not know how to do it without writing one by one. Can someone Kindly help me please?