Hi,
This is my first post.
So let me first thank you all for the service offered.
I have a sheet with several tables arranged vertically.
I want to filter all the tables in the sheet.
Is this possible and how?
Thanks
Hi,
This is my first post.
So let me first thank you all for the service offered.
I have a sheet with several tables arranged vertically.
I want to filter all the tables in the sheet.
Is this possible and how?
Thanks
Last edited by joshuar; 08-22-2009 at 09:54 AM.
Hi,
do you want to filter each table individually?
Yes but at the same time.
Only one autofilter per sheet.
Entia non sunt multiplicanda sine necessitate
thats not quite true, in 2007 you can select a region ,set style as a table
and each comes with its own autofilters set
so in theory you should be able to create a say less than macro that say uses cell h1 value and applies it to the first column of each table,
ah i had another go heres an example
Please Login or Register to view this content.
first code will filter on field 1 of tables 1,2,3 greater or equal to than whats in cell h1Please Login or Register to view this content.
second resets each filter
this all assumes that op has excel 2007 of course
Last edited by martindwilson; 08-18-2009 at 07:02 PM.
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Sorry for the delay friends.
But I dont quite get you.
I do use Excel 2007.
What does set style as a table mean?
Do I write this macro?
Pls. pardon the ignorance here.
Regards,
select your each of your tables (ranges) one at a time (i presume they are all the same dimensions width wise,)
then on home tab pick format as table,pick a style make sure the pop up box reflects your table if it has headers click the box
click ok.
(note tables need to be below each other as the filter is applied to rows so if they were next to each other rows would be filtered out in adjacent tables)
now the awkward thing is as you create a table its given a name say table 1 ,table 2 and so on but if you delete one say table 2 the next one will be called table 3 not table 2
but you can rename any table, if you select the whole table another tab will pop up above the design tab called table tools ,click that and you can rename the table to match that in the code.
see attached
Thanks a lot.
It's worked.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks