criteria2=

  1. K

    VBA - AutoFilter with more than 2 criteria

    I would like to autofilter with 5+ criteria, but my code falls over if I try more than 2. is there a work around or alternative method without stepping through each line? Works Sheets("data").Range("A:P").AutoFilter Field:=1, Criteria1:="<>R2*" _ , Operator:=xlAnd, Criteria2:="<>T2*"...
  2. D

    Question about my code for vba autofilter

    Sub Anazitisi_apodosi() Sheets("ÐÑÏÃÑÁÌÌÁ").Range("AB15:AB1000").AutoFilter , Field:=28, Criteria1:=">Sheet2.Range('A7').Value", Operator:=xlAnd, Criteria2:=<sheet2.range('b7').value" End Sub I want to autofilter within a range of numbers that are stored in two cells. I Dont want to be...
  3. C

    Stopping an Autofilter macro if no value is found...

    This code searches for a criteria value catval between the given dates d1 & d2: Range("A1:E1").Select Selection.AutoFilter With Sheets("REGISTER").Range("B1").CurrentRegion.Offset(1, 0) .AutoFilter Field:=2, Criteria1:=catval .AutoFilter Field:=3, Criteria1:=">=" & d1...
  4. T

    Macro is not filtering properly

    Hi All, Today, without any main changes in my Workbook, I found out that one of my option doesn't work. My function is filtering database basing on values from Data Validation, that's part of my code: ... If Worksheets("MENU").CheckBoxes("CheckBox1").Value = 1 Then Dim lngStart As...
  5. jevi

    Filter Today's Date with VBA -So tricky

    Sub Ufa() x = CLng(Date) ActiveSheet.UsedRange.AutoFilter Field:=9, Criteria1:=">=" & x, Operator:=xlAnd, Criteria2:="<" & x + 1 End Sub I have this macro to filter today's date is working great but is not giving me the header only the date without header...I don't know what to do :(...

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