Boa-noite,
Tenta assim:
Sub Filtrar()
'
' Filtrar Macro
'
' Atalho do teclado: Ctrl+a
ActiveSheet.Range("$A$1:$f$831").AutoFilter FIELD:=5, Criteria1:=Plan1.Range("L2")
ActiveSheet.Range("$A$1:$f$831").AutoFilter FIELD:=1, Criteria1:=Plan1.Range("H2")
Range("A2:F831").Copy
Range("H7:M7").PasteSpecial
ActiveSheet.Range("$A$1:$f$831").AutoFilter FIELD:=5, Criteria1:="<> "
ActiveSheet.Range("$A$1:$f$831").AutoFilter FIELD:=1, Criteria1:="<> "
Range("H7:M7").Select
End Sub
att,
Francisco
Postado : 24/02/2016 5:35 pm