Hello All,
I have a sample in attached and please help me to disable all AutoFilter by code.
Regards,
tt3
Hello All,
I have a sample in attached and please help me to disable all AutoFilter by code.
Regards,
tt3
Last edited by tuongtu3; 10-06-2013 at 12:46 AM. Reason: Solved
What version of Excel do you have?
If 2010:
choose DATA - then choose FILTER
You need to be in the first cell that you want the filter removed from. You need to do this for each row. In your case, B2, B6, etc.
@Johfra:
Thank for your help. I'm using Excel2007 and I would like marco to automate.
Regards,
tt3
Oh, you want this to be done through macro?
What I've done for other spreadsheets is I created a button with "Filter On" and "Filter Off". Much easier for the user.
Do you know how to create macros? (just to know how to help you better)![]()
Hi Johfra,
Can you create a macro to "Filter Off" per my sample attached in post# 1?
Thank you for your help.
Regards,
tt3
As far as I can see your sheet contains a number of tables!
You got "Table1" to "Table4" + a "Table6". In order to get rid of these "table formats" one really should know the number of tables. Still I'v written a macro that checks up to 10 tables and you can increase this if needed be.
Alf![]()
Please Login or Register to view this content.
Hi Alf,
The code work with sample in attached but it did not work with the real ws. Please take a look and see if there's anything you can help
(This is a real ws but I deleted all data).
Regards,
tt3
maybe
![]()
Please Login or Register to view this content.
You latest uploded file has tables 22, tables 36, tables 38 and tables 44 so if you wish to use my macro change
to![]()
Please Login or Register to view this content.
But have you tried nilem's code? Looks better than mine since he don't use a hard coded integre.![]()
Please Login or Register to view this content.
Alf
@Nilem & Alf: Both codes work perfect. Thank yu very much for your time and help.
One question:
How to check the table number#???You latest uploaded file has tables 22, tables 36, tables 38 and tables 44 so if you wish to use my macro change
Regards,
tt3
something like
![]()
Please Login or Register to view this content.
Thank you all for your time and help.
Regards,
tt3
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks