No me funciona un código... Que esta en evento change
PARA DAN... Este código no me funciona...
No se porque
Private Sub Worksheet_Change(ByVal Target As Range)
'Por.Dante Amor
If Not Intersect(Target, Range("S5:U935")) Is Nothing Then
If Target.Count > 1 Then Exit Sub
cuenta = Application.CountA(Range("S" & Target.Row & ":u" & Target.Row))
If cuenta > 1 Then
MsgBox "No pueden tener 2 opciones de IVA", vbCritical, "ERROR"
Target.Select
Application.EnableEvents = False
Target = ""
Application.EnableEvents = True
Exit Sub
End If
Range("A" & Target.Row & ":B" & Target.Row).Interior.Color = xlNone
If cuenta = 1 Then
wcol = Cells(4, Target.Column).Interior.Color
Range("A" & Target.Row & ":B" & Target.Row).Interior.Color = wcol
End If
End If
End Sub
Me funcionaba y luego deja de fucnionar
Así tengo la hoja
no se porque no me funciona...