Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False
If Target.Value = "OK" Then
Target.ClearContents
Else
Target.Value = "OK"
End If
Application.EnableEvents = True
End Sub
Xin thêm điều kiện cho vùng nhất định, chứ thế thì không phải xóa / đè tùm lum sao hihiDuoble làm gì bạn, click luôn cho khỏe!
PHP:Private Sub Worksheet_SelectionChange(ByVal Target As Range) Application.EnableEvents = False If Target.Value = "OK" Then Target.ClearContents Else Target.Value = "OK" End If Application.EnableEvents = True End Sub