One Button click to "unfilter"

bradjedis
4StarLounger
Posts: 538
Joined: 30 Mar 2010, 18:49
Location: United States

One Button click to "unfilter"

Post by bradjedis »

Hey all,

I have a spreadsheet where I have several filters set (using the typical methods). From time to time, I need to clear all of the filters.

Assume header row to be row 5, data columns in use: C thru K data beginning in row 6.
I would like to have this as a macro so that I can assign a button to do the task.


Any help is always greatly appreciated.


Thanks,
Brad

User avatar
HansV
Administrator
Posts: 78488
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: One Button click to "unfilter"

Post by HansV »

The line

ActiveSheet.ShowAllData

will cancel all filtering on the active sheet. You can include this line in a macro.
Best wishes,
Hans

bradjedis
4StarLounger
Posts: 538
Joined: 30 Mar 2010, 18:49
Location: United States

Re: One Button click to "unfilter"

Post by bradjedis »

cool.

Thanks,
Brad

kathon
NewLounger
Posts: 2
Joined: 25 Aug 2010, 15:09

Re: One Button click to "unfilter"

Post by kathon »

For anyone who doesn't want a macro to do this, the Data-Filter-Show All command can be moved (via customize) from the sub menu to the toolbars for a one-click 'unfilter all' operation.

User avatar
HansV
Administrator
Posts: 78488
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: One Button click to "unfilter"

Post by HansV »

Welcome to Eileen's Lounge!

For those using Excel 2007 or later: the equivalent is the "Clear" button. You can customize the Quick Access Toolbar, select "Home Tab" in the "Choose commands from" dropdown, select Clear and add it to the Quick Access Toolbar.
x307.png
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans