criteria1=

  1. H

    On Error Resume Next - cover all autofilter criteria

    Hi All Just a quick one - can I check the error handler covers all my autofilter criteria? I can't avoid the errors occurring on any of the criteria, I just want to skip over. Sub DataRaw() Sheets("DataInput").Select On Error Resume Next Selection.AutoFilter...
  2. S

    Help to code copy to 02 sheets extend copy to 100 sheets

    Hi all I have code below Code work well If I filter, copy data from 06 sheets to sheet("ky1") with condition in sheet(main).range(G1) and to sheet(ky2) with condition in sheet(main).range(G2). Now I want extend code that: 1. Condition value to filter in range: sheets(main).range(G1:G& lastrow)...
  3. B

    Code not executing

    Hi all, I use this code to filter data in my workbook; Private Sub Workbook_Open()On Error GoTo Errorhandler Workbooks("Persnlk.xls").Close SaveChanges:=False Workbooks("VB_Macros.xls").Close SaveChanges:=False Worksheets("Shifts").AutoFilterMode = False Worksheets("Shifts").Range("J1:Q" &...
  4. M

    VBA filter function that includes only the next 3 months

    Hi guys, I am making a macro in excel for a weekly data output from an excel file. i already have two filters included, but the third one i would like to make is a little more tricky. <code style="margin: 0px; padding: 0px; font-style: inherit; font-weight: inherit; line-height...
  5. B

    VBA to loop through code

    Hi all, I need to add code to loop through the code below, but I'm not exactly sure how to do this. Any help would be greatly appreciated. What this is currently doing (In excel) is filtering on column "H" to find the criteria "No Match". Once found a new row is added to my table in within...
  6. 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*"...
  7. H

    VBA Filter codes needs amendment to filter values which are seperated with a comma

    Hi, I am using this VBA code to filter records. Private Sub Worksheet_Change(ByVal Target As Range) Application.ScreenUpdating = False With ActiveSheet.Range("D5:F1000") .AutoFilter .AutoFilter Field:=1, Criteria1:="*" & Range("D4") & "*", visibledropdown:=False...
  8. S

    Trying to make a macro more efficient

    Hi All ! I have a piece of code written from the macro recorder which serves its purpose but runs quite slow as the data set increases, my VBA skills are limited so I'm wondering if or how the code below could be written to make the process more efficient ? Basically what it will do is copy a...
  9. JackDanIce

    VBA Date filter not working

    Hi, Part of some code is following: dataRng.AutoFilter field:=10, Criteria1:=">" & xxxx I want to test for dates greater than 30 June 2019, however, no matter how I replace xxxx, after the code runs, the filtered values are hidden. If I then select the filter drop down arrow, check the applied...
  10. T

    Find name in column and copy to relevant worksheet

    Hi Guys, I have a list of data with a persons name in column N. For each person i have created a tab which is identical to their name in column N. Is there a way to filter by that person and copy all of the data to the relevant named tab as values. At the moment i am doing the below but...
  11. Z

    Flitering Macro

    Afternoon I am using a macro to filter several arguments. Using 4 cells to define my filters. But if I leave any of them blank, the filter returns with no results. How do I write the macro to ignore if the cell is left bank? Sub Filter()' ' Filter Macro ' '...
  12. W

    Filter date trouble

    I have problems when applying the following code ActiveSheet.Range("$A$1:$B$7").AutoFilter Field:=1, Criteria1:= _ "<01.08.2018", Operator:=xlAnd When the macro activates the filter. All values are filtered and are not visible in the list (values larger, equal and lower than...
  13. D

    Help with Filter Macro

    Hello, I have a workbook that is used to bring in raw data for POS transactions from multiple locations. The macro used is to filter the data on a summary page as well as on individual worksheets for each location so on each worksheet only that location's transactions show and they are...
  14. S

    Copy Unique Values and Create sheet for each of them

    Hi, I'm currently new in recording basic macro. Can someone help me get the unique values for in the account column and create each account a separate worksheet? What I currently have is just for 3 items to filter the account columns for each items, copy the contents, create worksheet for...
  15. K

    Old Code - Seems to be acting differently

    After at least 2 years of running the same report one of my output files is no longer correct. I have narrowed this down to a single line of code that seems to be acting incorrectly. Sheets("Chasing").Range("$A$4:$Z$955").AutoFilter Field:=4, Criteria1:="*W*" I believe this should be apply...
  16. F

    VBA help

    Good afternoon, i am using the code below to copy some data from a "master" sheet, selected using a filter, to another "Bp" sheet. What i need to do is: apply filters at 2nd, 3rd, 4th columns, then the next column (5th) has to be filtered to remove empty cell, select the data (they increase day...
  17. W

    Autofiltering

    Hello guys, here is my code for autofiltering but it doesn't seem to work. Any ideas? is it because the criteria is a string data? i've tried Criteria1:=Array(90000*, 19000*, 11000*, 24000*) but it doesn't work. TIA ActiveSheet.Range("$A$1:$AD$10000").AutoFilter _ Field:=17, _...
  18. C

    Filter tables in the workbook

    Hi all, My tables retrieve entries from the database through a dropdown list so they can have 1 to 500 entries therefore auto filter to remove blanks is inevitable. I have tables across many sheets however they don't start from the same row or column. In order to filter out blanks, I had to...
  19. G

    VBA for Autofilter if column ontains value on another sheet

    Hello, I am trying to work out the vba, to replace "pass" and "investment" with the cell location Sheet Instructions cell C26 and Sheet instructions C35 as these are drop down lists which can contain various options. I can find numerous examples where everything is contain on a single sheet...
  20. T

    Help with this filter macro?

    Hi Everyone I have this macro to filter dates but I need to be able to combine the two so it does both things So basicly it currently chages the filter to just "Sheets("PropPDD").Range("$A$2:$J$10000").AutoFilter Field:=1, Criteria1:="<=" & EndM" I need it to do both? StartM =...

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