vba autofilter

  1. M

    Stop Sub if data has already been deleted - VBA

    Hi I'm using this Sub to delete rows where the number zero exists in column B. However, if the Sub has already been run and the rows with the number zero in column B have been deleted, then the Sub produces an error. Does anyone know how to exit the Sub IF there are no rows in column B...
  2. M

    VBA code to select a value in a filter then delete everything with that criteria

    Hi I'd like to write some code that will apply a filter to row 1 in a sheet, then filter for a condition in the autofilter then delete everything that turns up when that condition is applied. In the simple example below, I have the title 'Numbers' in cell A1, then the numbers 1, 2, 3, and 4...
  3. M

    Macro autofilter not working, as expected

    Hi I recorded a macro which applies a filter to row 1 of a sheet, then filters data by a specific criteria ie "On Deal." However, when I add a new set of data to that sheet and run the macro, it doesn't work as expected. Can someone please advise how I should amend the code below? The...
  4. P

    VBA Auto Filter and Paste to Create New Sheets.

    I have drafted a macro to automate my excel. 1. Autofilter and create new worksheets based on the filter value with keeping the same format of the original file. 2. AutoFill Destination Range("A5: A6") to the end of the column. 3. Loop the process until the filter fields get over. 4. Filter...
  5. T

    VBA multiple autofilter if

    Hello. I can't seem to get this to work. I have 5 fields that need to be auto filtered if they exists in the pivot table. How do I auto filter these if any of them exists in the pivot table? Thank you so much! ' With ActiveSheet.PivotTables("PivotTable2").PivotFields("Check / Trace #")...

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