Hi everyone,
For a project I'm doing I have a worksheet("Registos") that autofilters a range of datas according to values of 2 particular range("BF2") and range(Q13") within the worksheet("PrintDupla"). Once the autofilter is complete, the resulting row (only one is possible) is copied to range ("A1") of worksheet ("Registos").
Problem: I have figured how to do the autofilter, but i do not know how to copie this row to range("A1").
Here is the code:
Please Help me with the code
Thank you in advance...
For a project I'm doing I have a worksheet("Registos") that autofilters a range of datas according to values of 2 particular range("BF2") and range(Q13") within the worksheet("PrintDupla"). Once the autofilter is complete, the resulting row (only one is possible) is copied to range ("A1") of worksheet ("Registos").
Problem: I have figured how to do the autofilter, but i do not know how to copie this row to range("A1").
Here is the code:
Code:
Sub Filtrar()
'
' Filtrar Macro em 26-09-2011 por Galas
'
Range("A4:AE4").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.AutoFilter
ActiveSheet.Range("$A$4:$AE$7").AutoFilter Field:=1, Criteria1:=Sheets("PrintDupla").Range("BF2").Text
ActiveSheet.Range("$A$4:$AE$7").AutoFilter Field:=2, Criteria1:=Sheets("PrintDupla").Range("Q13").Text
End Sub
Please Help me with the code
Thank you in advance...