Uma possibilidade
Private Sub Worksheet_Change(ByVal Target As Range)
Dim MsgRT As String
Application.EnableEvents = False
Select Case Target.Address
Case "$A$1"
If Range("A1").Value = "ON" Then
Range("A2,A3,A4").Value = "OFF"
MsgRT = MsgBox("Ativado !", vbInformation, "Status")
End If
Case "$A$2"
If Range("A2").Value = "ON" Then
Range("A1,A3,A4").Value = "OFF"
MsgRT = MsgBox("Ativado !", vbInformation, "Status")
End If
Case "$A$3"
If Range("A3").Value = "ON" Then
Range("A1,A2,A4").Value = "OFF"
MsgRT = MsgBox("Ativado !", vbInformation, "Status")
End If
End Select
Application.EnableEvents = True
End Sub
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 25/12/2016 6:12 am