How to use Advanced Filter with Critera located in a different Workbook

willbirn

New Member
Joined
Mar 21, 2023
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Hello all, I am currently working on a VBA script that must automatically filter a worksheet with 4 criteria. I only want rows to be shown that include any of the 4 strings. Since there are more than 2 pieces of criteria I know I must use advanced filter, but I want the desired filter criteria to be pulled from a separate workbooks sheet, I cant figure out how to do this.

My current sketchy method (that works but is not ideal) includes having the macro input the header and filter criteria into some far off column within the sheet I am sorting and then execute an advanced filter with that data.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
What you're asking for is certainly possible, and if you provide a sample of your data using the XL2BB add in, as well as an indication of the criteria you want to filter by, I'll be happy to show you how.
 
Upvote 0

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,077
Latest member
Jocksteriom

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