[VBA] Applying filter to multiple tables on same sheet

kleinmat

New Member
Joined
Mar 12, 2024
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have an Excel Sheet with 3 Tables on a single Tab.
Let's say that Columns B & C contain First Names and Last Names, and that the content of these columns is the same across all three tables. The only difference between these tables is the columns to their right.

step1.jpg


What I simply can not figure out is how I can automatically apply the filter criteria chosen in the first table to all three:

step2.jpg


So instead of setting the filter "Last Name = Myers" on all three tables manually, I would like to set it on Table1 only and then have this very same filter applied to Table1, Table2, Table3 at the same time.

I know similar questions have been asked here before and I did read the answers I could find, but given I am new to VBA, I was not able to apply these answers to my problem.
Are you kind folks willing to help?

Thank you!
Matt
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
I thought I'd seen a similar request before and was surprised to see that it was you back in March:


Have you tried my code in that thread?

I've now revisited my solution in that thread and fixed the problem of the tables not synchronising and will post the updated code there.
 
Upvote 0
Interesting, my memory must be failing me. THANK YOU! I have not seen your original reply until now, and I will continue the conversation in the other thread!
 
Upvote 0

Forum statistics

Threads
1,224,811
Messages
6,181,081
Members
453,021
Latest member
Justyna P

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