Filter Multiple Tables at once based on Cell value

Martin sherk

Board Regular
Joined
Sep 11, 2022
Messages
94
Office Version
  1. 365
  2. 2016
Hello,

Is there a way I can Filter multiple tables at once based on a specific cell value using VBA.

As you can see I have 4 tables, I want to be able to filter Columns A and B in the 4 tables (Code and Customer) based on Cell H3 Value and I3.

Book1
ABDGHI
1
2#CodeCustomer
3AF
4
5
6CodeCustomerReferencePay-*
7AFSALARY100.000.00-
8BGSALARY100.000.00
9CHSALARY100.000.00
10DWSALARY100.000.00
11ESSALARY100.000.00
12
13
14
15
16CodeCustomerReferencePay-*
17AFSALARY100.000.00
18BGSALARY100.000.00
19CHSALARY100.000.00
20DWSALARY100.000.00
21ESSALARY100.000.00
22
23
24
25
26CodeCustomerReferencePay-*
27AFSALARY100.00
28BGSALARY100.00
29CHSALARY100.00
30DWSALARY100.00
31ESSALARY100.00
32
33
34
35CodeCustomerReferencePay-*
36AFSALARY100.00
37BGSALARY100.00
38CHSALARY100.00
39DWSALARY100.00
40ESSALARY100.00
Sheet1
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Will Code A always refer to Customer F? Or can Code A also refer to other customers?
 
Upvote 0
Can be done in Power Query. Load each table to PQ Editor. Create a parameter query for each of the variables and substitute the parameter for the filter. Close and Load each query to a table.
 
Upvote 0
Can be done in Power Query. Load each table to PQ Editor. Create a parameter query for each of the variables and substitute the parameter for the filter. Close and Load each query to a table.
these tables are already coming from PQ, am sorry i didn't get the second part
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,957
Members
449,200
Latest member
indiansth

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