AutoFilter question/help

redspanna

Well-known Member
Joined
Jul 27, 2005
Messages
1,604
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have the following code within my VB to filter fields 2 & 5 as shown

Code:
ActiveSheet.Range("$A$2:$O$517").AutoFilter Field:=2, Criteria1:="T5"
    ActiveSheet.Range("$A$2:$O$517").AutoFilter Field:=4, Criteria1:="=arr", _
        Operator:=xlOr, Criteria2:="="

I want to add a thrid filter to same range that will filter field 1 to the date that populates cell A13 in 'Daily Total' sheet

I had this code

Code:
ActiveSheet.Range("$A$2:$O$517").AutoFilter Field:=1, Criteria1:=Sheets("Daily Total").Range("A13").Value
but can't seem to get it to work

any help / ideas

many thanks
 
Last edited:

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Maybe try:

Rich (BB code):
ActiveSheet.Range("$A$2:$O$517").AutoFilter Field:=1, Criteria1:=CLng(Sheets("Daily Total").Range("A13").Value)
 
Upvote 0

Forum statistics

Threads
1,224,889
Messages
6,181,605
Members
453,055
Latest member
cope7895

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top