با درود
ببین این مورد به درد میخوره
کد:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
If Target.Address = "$A$1" Then
If Target.Value = "A" Then
Range("B1").Value = ""
End If
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
If Target.Address = "$A$1" Then
If Target.Value = "A" Then
Range("B1").Value = ""
End If
End If
End Sub
هر چند پیشنهاد من اینه که رو سل b1 هم بزار چون ممکنه تو سل A1 باشه و شما B1 رو تغییر بدی ولی پاک نمیشه در این کد چون تغییرات رو ورودی A1 لحاظ شده .
علاقه مندی ها (Bookmarks)