Solved

Excel  - Filter to all Sheets

Posted on 2011-02-22
2
222 Views
Last Modified: 2012-05-11
Hi,

In an open workbook with multiple sheets, is there a way to select all sheets, and add a filter (Data - Fileter) at one time?

I am only able to one sheet at a time.

Thanks
0
Comment
Question by:tahirih
2 Comments
 
LVL 24

Accepted Solution

by:
broomee9 earned 500 total points
Comment Utility
No, the option is greyed out when you select multiple sheets.  You can do it through code though, with one click.

The below will add the autofilter to every sheet in the workbook for row 1.  If the autofilter is already applied it removes it.  So it's like a toggle on and off.
Sub ToggleAutoFilter()

    For Each wksht In ThisWorkbook.Worksheets
        wksht.Rows("1:1").AutoFilter
    Next
    
End Sub

Open in new window

Book1.xls
0
 

Author Closing Comment

by:tahirih
Comment Utility
Thank you
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now