Filter multiple worksheets based on list

alkaline55

New Member
Joined
Jan 24, 2020
Messages
28
Office Version
  1. 2016
Platform
  1. Windows
Hi everyone, I'm new to VBA and looking for some guidance. I'd like to filter Column A on three different tabs based on the first value of a list on a separate Name tab. So, find value from A2 on Name tab and filter Column A for it on the 3 tabs.

This is part of a wider macro I'm building.

The wider goal of my macro is to complete step 1 above, save down a copy of the workbook titled Name.xlsx, and loop to the next name in the list. Help with the broader goal or the first step is greatly appreciated.

Thank you so much
 
It's hard to tell why you are getting the errors because I cannot reproduce them using the workbook you posted. I would need to see the actual workbook.
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Ok let me work on producing something that I can share...I really appreciate the help
 
Upvote 0
I see part of the problem, I have 4 other sheets that have references in addition to the 3 Data tabs. These do not have filters based on Name, they are just referenced. I could move these to the end or right before the 3 Data tabs (that are at the end).

Because they weren't accounted for, they were throwing REF errors which prompted the Values Update. I think this VBA is so close...:)
 
Upvote 0
You can put the 4 other sheets anywhere but the 3 Data sheets must be the last 3 sheets. What are the names of the other 4 sheets and do they reference sheets in the same workbook? Will their names ever change? If you can share your actual workbook, we could save a lot of time.
 
Upvote 0
Unfortunately, can't share the actual workbook...I've been digging into this and may see the issue with my workbook. Will send update ASAP:geek:
 
Upvote 0
Ok! So I see problem, nothing wrong with the code you provided, it was perfect! Something I hadn't considered is cross referencing among the summary tabs. So if Summary referenced a cell on Detail, I *think* depending on the ordering of the update there would be a REF error. I have all sheets now referencing Data tabs only and I no longer have a problem. It's a detailed workbook so took me a little bit to confirm.

Thank you so much for the help :cool:
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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