Filtro

Hola gualo.
Esta rutina me va de maravilla, el problema surge cuando tengo activado el filtro en "historico", pues se pierde información. ¿Me ayudas?
Saludos y felices fiestas..
Private Sub Worksheet_Change(ByVal Target As Range)
Dim fila, filalibre As Integer
If Target.Row > 20 Then
If Cells(Target.Row, 16).Value = "0" Then
If Sheets("historico").Range("A2").Value = "" Then
filalibre = 2
Else
filalibre = Sheets("historico").Range("A1").End(xlDown).Row + 1
End If
fila = Target.Row
Range("A" & fila & ":V" & fila).Copy Destination:=Sheets("historico").Range("A" & filalibre)
ActiveSheet.Unprotect
Target.EntireRow.Delete Shift:=xlShiftUp
End If
End If
End Sub

1 Respuesta

Respuesta
1
Te recomiendo que al inicio de la macro, incluyas la instrucción
Selection. AutoFilter
Para que desactive el autofiltro, y luego puedes volver a activarlo.

Añade tu respuesta

Haz clic para o

Más respuestas relacionadas