+ Reply to Thread
Results 1 to 2 of 2

Create Filters for a Table based on what is visible in another table

  1. #1
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Create Filters for a Table based on what is visible in another table

    Hello.

    I have a workbook which contains many query tables, each table on a separate tab.
    Each table shows different field names - but the left most field is the same on all tables (job ID).


    The first table (leftmost tab) is special - what I want is some method of filtering all the individual worksheets based on what is visible on the leftmost worksheet. The users will be filtering on this special, left-most-tab, and I don't want them to have to filter on every worksheet.

    ...the thing is I can't just pass the filters because the user will most definitely not be filtering on the Job ID column and the other columns are quite different...

    So, what tried to do is the following event macro (in the attached example this event is triggered when you select the second worksheet labeled "Next Query").

    Please Login or Register  to view this content.

    The variable "Keep List" is being created exactly as I want, but when I run the last command (which is currently commented out in the code) the result is that everything is de-selected and the table is 'blanked out'.

    I'm building the list for the "Criteria1:=" wrong, but i can't see what is happening.

    Any ideas would be greatly appreciated.
    Attached Files Attached Files
    Last edited by GeneralDisarray; 09-17-2013 at 03:51 PM. Reason: self-solved
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Create Filters for a Table based on what is visible in another table

    Figured it out... you have to build the "keepList" as an array, not a string that you attempt to use as an array....

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Replies: 1
    Last Post: 09-11-2013, 02:27 PM
  2. Replies: 2
    Last Post: 04-16-2013, 06:17 AM
  3. Changing the Pivot Table Filters based on Multiple Cells
    By dbnhc8 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-28-2012, 02:37 PM
  4. VBA To create Text based Pivot Table
    By genichigo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2012, 10:28 AM
  5. Need to Create a Table based on One Criteria
    By dwgnome in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-28-2012, 02:33 PM

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