+ Reply to Thread
Results 1 to 2 of 2

Displaying two data tables in a worksheet from another worksheet

  1. #1
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Displaying two data tables in a worksheet from another worksheet

    I am trying to display two tables in my worksheet. Table1 and Table2 are identical and I am trying to use advanced filter to filter the tables based on two different criteria.

    This works with one filter and with two filters with the worksheet change function.

    However, it only works if I offset table2 a couple of rows so that identical lines are not filtered which makes the tables look the same. This ruins my layout and I am looking for some way to display two tables in a worksheet.

    In this thread on mrexcel.com / forum/excel-questions/398567-multiple-advanced-filters-worksheet_change-event-functionality.html ( I have cross posted in this thread!)


    there is a solution for one table but I would like help to use the xlFilterCopy action for two tables. Is this possible?


    I am copying the code (this is not my code) from that thread:

    Private Sub Worksheet_Change(ByVal Target As Range)

    Dim rgCriteria As Range, rgList As Range

    Set rgList = Range("A5:C9")
    Set rgCriteria = Range("B1:C2")

    If Not Intersect(Target, rgCriteria) Is Nothing Then
    rgList.AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:=rgCriteria, Unique:=False
    End If

    End Sub


    And perhaps there is another way to include several columns and several rows from two different tables into another worksheet?

  2. #2
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Re: Displaying two data tables in a worksheet from another worksheet

    My attempt at the code is:


    Please Login or Register  to view this content.
    I am not sure why this doesn't work?

+ 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. Iteregating a Worksheet and Displaying the results on an other Worksheet
    By wysbob in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-15-2015, 04:16 AM
  2. Replies: 0
    Last Post: 11-26-2013, 05:42 PM
  3. [SOLVED] How to view data from multiple tables in one worksheet in another worksheet?
    By TechnoFonic in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-22-2013, 03:40 PM
  4. Macro for displaying data in a row of worksheet in another worksheet
    By NRMDU in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-06-2013, 01:28 AM
  5. Replies: 0
    Last Post: 12-26-2012, 11:42 AM
  6. Displaying images from worksheet A to worksheet B with a click of a button
    By emilyph in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-29-2012, 07:49 AM
  7. Can I script to move data from a worksheet of tables/forms into 1 worksheet with 1 table
    By andybrown65 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2012, 02:35 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