I have two header type rows on my worksheet. I am using this code to autofilter the sheet:
When it filters, I lose my header rows (rows 1 & 2). I really want to filter from Row3 and on. Is this possible? Thanks.
Code:
Private Sub cmdSort_Click()
If UserForm1.txtParts.Value = "" Then
Exit Sub
End If
Columns("B:B").Select
Selection.AutoFilter
Selection.AutoFilter Field:=1, Criteria1:=UserForm1.txtParts.Value
Unload Me
End Sub
When it filters, I lose my header rows (rows 1 & 2). I really want to filter from Row3 and on. Is this possible? Thanks.