Hello,
I am getting the error message “AutoFilter method of range class failed” for the following code:
</SPAN>
Sheets("Step 4").Select</SPAN>
Dim lastrow3 As Long</SPAN>
lastrow3 = Range("A" & Rows.Count).End(xlUp).Row</SPAN>
ActiveSheet.Range("A3:E" & lastrow3).AutoFilter Field:=5, Criteria1:="=Yes", _</SPAN>
Operator:=xlOr, Criteria2:="=#N/A"</SPAN>
I want it to filter a range (which changes when the macro is run each week) by “Yes” and “N/A”.
Thanks!</SPAN>
I am getting the error message “AutoFilter method of range class failed” for the following code:
</SPAN>
Sheets("Step 4").Select</SPAN>
Dim lastrow3 As Long</SPAN>
lastrow3 = Range("A" & Rows.Count).End(xlUp).Row</SPAN>
ActiveSheet.Range("A3:E" & lastrow3).AutoFilter Field:=5, Criteria1:="=Yes", _</SPAN>
Operator:=xlOr, Criteria2:="=#N/A"</SPAN>
I want it to filter a range (which changes when the macro is run each week) by “Yes” and “N/A”.
Thanks!</SPAN>