Mudando linhas do padrão exibidas para ocultas
Enviado: 13 Abr 2016 às 10:14
Bom dia.
O código abaixo funciona perfeitamente, mas teria como mudar as linhas vermelhas no padrão oculta e conforme a condição reexibi-las?
O código abaixo funciona perfeitamente, mas teria como mudar as linhas vermelhas no padrão oculta e conforme a condição reexibi-las?
Código: Selecionar todos
Sub OCULTAR_REEXIBIR_2()
Dim wsPlan1 As Worksheet
Dim UltL As Long
Dim i As Long
Set wsPlan1 = ThisWorkbook.Worksheets("Plan1")
UltL = wsPlan1.Cells(Rows.Count, 3).End(xlUp).Row
wsPlan1.Cells.EntireRow.Hidden = False
For i = 2 To UltL
If Not wsPlan1.Cells(i, 3).Value = Empty Then
wsPlan1.Rows(i + 2 & ":" & i + 2).EntireRow.Hidden = True
End If
Next i
Set wsPlan1 = Nothing
End Sub