I have revised the original command several ways and I still cannot get it to work.
ORIGINAL COMMAND
ActiveSheet.Range("$A$89:$K$140").AutoFilter Field:=6, Criteria1:=Array("2", "3", "4"), Operator:=xlFilterValues
MY COMMAND
ActiveSheet.Range("$A$" & Str(intFirstCompRow) & ":$K$" & Str(intLastCompRow)).AutoFilter Field:=6, Criteria1:=Array(Str(Cells(intFirstCompRow + 1, 5) - 1), Str(Cells(intFirstCompRow + 1, 5)), Str(Cells(intFirstCompRow + 1, 5) + 1)), Operator:=xlFilterValues
intFirstCompRow = 89
intLastCompRow = 140
Cells(intFirstCompRow + 1, 5) = 3 NOTE: This cell is F91 and formatted as a general format.
This should filter to values from 2 to 4.
Thank you everyone!
ORIGINAL COMMAND
ActiveSheet.Range("$A$89:$K$140").AutoFilter Field:=6, Criteria1:=Array("2", "3", "4"), Operator:=xlFilterValues
MY COMMAND
ActiveSheet.Range("$A$" & Str(intFirstCompRow) & ":$K$" & Str(intLastCompRow)).AutoFilter Field:=6, Criteria1:=Array(Str(Cells(intFirstCompRow + 1, 5) - 1), Str(Cells(intFirstCompRow + 1, 5)), Str(Cells(intFirstCompRow + 1, 5) + 1)), Operator:=xlFilterValues
intFirstCompRow = 89
intLastCompRow = 140
Cells(intFirstCompRow + 1, 5) = 3 NOTE: This cell is F91 and formatted as a general format.
This should filter to values from 2 to 4.
Thank you everyone!