Macro to filter and copy data from all sheets except 3

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,

I need some help,
I have a document with 3 tabs that are always there and weekly tabs that get added
now the 3 tabs are "Template", "Todo List", and Historic.

now the other tabs are all the same and get created from the "Template" tab but I never know what they will be called or how many sometimes it just one, other time it can be 30+

so heres what I need

I want a macro that will go to every sheet one at a time (excluding
"Template", "Todo List", and Historic.) and create a filter for Columns C17 to H & last row.
Column H has True and False in it I want to show the False rows
Now column C is a date row and I want all dates that are one week in the future or before that.


So basically goto sheet filter
Columns C17 to H & last row (row 17 are my headers)
Filter by Column H show "False"
Filter by column C all dates that are less than today +7 days

then copy this filtered data Columns C:H (if there is any) and paste it in the "Todo List" sheet first free row after cell H20.

so what i get is a Todo list sheet showing all the rows that where false and within the dates

please help if you can

Thanks

Tony






 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,213,487
Messages
6,113,938
Members
448,534
Latest member
benefuexx

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