Solved

Excel  - Filter to all Sheets

Posted on 2011-02-22
2
229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Accepted Solution

by:
broomee9 earned 500 total points
ID: 34953554
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
ID: 34953642
Thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
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 …
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

726 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