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
 

mumps

Well-known Member
Joined
Apr 11, 2012
Messages
10,144
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.
 

Some videos you may like

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

alkaline55

New Member
Joined
Jan 24, 2020
Messages
28
Office Version
  1. 2016
Platform
  1. Windows
Ok let me work on producing something that I can share...I really appreciate the help
 

alkaline55

New Member
Joined
Jan 24, 2020
Messages
28
Office Version
  1. 2016
Platform
  1. Windows
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...:)
 

mumps

Well-known Member
Joined
Apr 11, 2012
Messages
10,144
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.
 

alkaline55

New Member
Joined
Jan 24, 2020
Messages
28
Office Version
  1. 2016
Platform
  1. Windows

ADVERTISEMENT

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:
 

alkaline55

New Member
Joined
Jan 24, 2020
Messages
28
Office Version
  1. 2016
Platform
  1. Windows
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:
 

Watch MrExcel Video

Forum statistics

Threads
1,122,929
Messages
5,598,917
Members
414,268
Latest member
MzCheez

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
Top