Each filter has separate criteria, so the second filter should be Criteria1, not 2. Also, you can use a With statement here:
Code:
With Selection
.AutoFilter
.AutoFilter Field:=9, Criteria1:="9546"
.AutoFilter Field:=5, Criteria1:="RT"
End With
Cells.Select will select ALL cells on the worksheet. If you're only wanting to select the cells after the filter runs, you can use the SpecialCells property to select only those cells that are visible at the time:
Code:
Cells.SpecialCells(xlCellTypeVisible).Select
Sub LCDM_Vendor_Reports()
'
' LCDM_Vendor_Reports Macro
' Macro recorded 9/28/2006 by Marc Miller
'
'
Sheets("Data").Select
Columns("E:G").Select
Selection.Delete Shift:=xlToLeft
Range("A1:I1").Select
With Selection
.AutoFilter
.AutoFilter Field:=9, Criteria1:="9546"
.AutoFilter Field:=5, Criteria1:="RT"
End With
Cells.SpecialCells(xlCellTypeVisible).Select
Selection.Copy
Sheets("9546").Select
Cells.Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Data").Select
Selection.AutoFilter Field:=9, Criteria1:="9551"
Selection.AutoFilter Field:=5
Application.CutCopyMode = False
Selection.Copy
Sheets("9551").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A1:I1").Select
Application.CutCopyMode = False
Selection.AutoFilter
Cells.Select
Selection.ColumnWidth = 44
Cells.EntireColumn.AutoFit
Cells.EntireRow.AutoFit
Selection.AutoFilter Field:=5, Criteria1:="RT"
Sheets("9546").Select
Cells.Select
Selection.ColumnWidth = 38.57
Cells.EntireColumn.AutoFit
Cells.EntireRow.AutoFit
Sheets("Main").Select
End Sub
Like that?