Xero, I was able to make it work..i am sorry, I had a hard time understand what you said, it seem there was a part missing..here is the code:
Sub CartCType()
Dim bottomA As Long
Application.ScreenUpdating = False
With Sheets("input_sheet")
bottomA = .Range("A" & .Rows.Count).End(xlUp).Row
For x = 2 To bottomA
If .Cells(x, "A") Like "10*" Then
.Cells(x, "A").AutoFilter field:=1, Criteria1:="10_C*"
ElseIf .Cells(x, "A") Like "20*" Then
.Cells(x, "A").AutoFilter field:=1, Criteria1:="20_C*"
End If
Next x
End With
Application.ScreenUpdating = True
End Sub
now for your asnwer, there is no need to be a loop since it<s the first column that is filter..damn i am dumb...THANKS for your helps
Bookmarks