+ Reply to Thread
Results 1 to 3 of 3

Filter multiple worksheets based on data input in a master worksheet.

Hybrid View

  1. #1
    Registered User
    Join Date
    05-17-2016
    Location
    chicago
    MS-Off Ver
    10
    Posts
    4

    Filter multiple worksheets based on data input in a master worksheet.

    Hi,

    I need some help with creating a VBA. I have a workbook that contains 6 worksheets. The first worksheet is a summary of the data listed in the 5 other worksheet by month. Worksheet 1-5 has a column that contains data by month and the summary worksheet has a cell (B1) that will allow me to input the numerical month I would like to filter worksheet 1-5 by. Can someone help me with creating a VBA that will allow me to filter data in worksheet 1-5 on Column E based on the numerical month I input the cell B1 of the summary tab? I added a link to the sample workbook I created.

    https://www.dropbox.com/s/wtlqsmw0yc...lter.xlsx?dl=0

    Thanks

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Filter multiple worksheets based on data input in a master worksheet.

    Sub Filter_Sheets()
        Dim ws As Worksheet
        For Each ws In Sheets(Array("Worksheet 1", "Worksheet 2", "Worksheet 3", "Worksheet 4", "Worksheet 5"))
            If ws.FilterMode Then ws.ShowAllData
            ws.Range("A12:G12").End(xlDown).AutoFilter Field:=5, Criteria1:=Format(Sheets("Summary").Range("B1").Value, "00")
        Next ws
    End Sub
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    05-17-2016
    Location
    chicago
    MS-Off Ver
    10
    Posts
    4

    Re: Filter multiple worksheets based on data input in a master worksheet.

    Thanks AlphaFrog! That worked

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Copying data from multiple worksheets to a master worksheet
    By Michael.H. in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-16-2014, 10:18 AM
  2. Replies: 0
    Last Post: 08-11-2014, 02:38 PM
  3. Split data into multiple worksheets based upon a column in master worksheet
    By cep3927 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-07-2014, 10:38 AM
  4. Accumulating data from multiple worksheets into a master worksheet
    By niteshmaherchandani in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-04-2013, 06:04 AM
  5. autofill data to multiple worksheets from master worksheet?
    By chop924 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-14-2013, 02:14 PM
  6. One filter/ Master filter multiple pivot tables based on worksheet...
    By jlworden in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-10-2013, 11:16 AM
  7. How To Populate Data From Multiple Worksheets To A Master Worksheet
    By rajifu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2011, 05:57 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1