+ Reply to Thread
Results 1 to 3 of 3

Autofilter on 2 tables

  1. #1
    Registered User
    Join Date
    12-10-2024
    Location
    Leeds, England
    MS-Off Ver
    365
    Posts
    1

    Question Autofilter on 2 tables

    Hi all,

    First time poster so go easy on me!!

    I have a worksheet which has 2 tables within it. Each table has a filter set up. My desire is for the tables to auto filter when new data is added.

    My current code is:

    Please Login or Register  to view this content.
    The 2nd table is creatively called "Table2"

    How can I add to the code to have both tables autofilter? Can I ListObjects multiple tables in some way?

    Thanks in advance.

    M
    Last edited by alansidman; 12-10-2024 at 03:27 PM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,891

    Re: Autofilter on 2 tables

    Hi M, and welcome

    Not sure what the ask is here. What do you want the tables to filter to?
    Under what circumstances?

    Perhaps a sample workbook showing before and after would help us understand the requirement.


    BSB

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,675

    Re: Autofilter on 2 tables

    Administrative Note:

    We would very much like to help you with your query, however your post does not comply with our guidelines

    Please take a moment to review how to add code tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Guideline #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here.

    I have added the code tags for you today. Please take a few minutes to re-read our guidelines and rules that you agreed to when you joined and comply in the future.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. [SOLVED] Autofilter problem on formatted tables
    By Benten667 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-14-2021, 10:02 AM
  2. autofilter method of range class failed -header has tables headers and non table headers
    By naveen.acheanz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2016, 08:21 AM
  3. Replies: 4
    Last Post: 03-16-2013, 08:33 AM
  4. Pivot tables autofilter
    By ahmad123 in forum Excel General
    Replies: 1
    Last Post: 05-30-2011, 05:33 PM
  5. Pivot tables autofilter
    By ahmad123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-30-2011, 04:40 PM
  6. AutoFilter method of Range class failed - Yet autofilter works.
    By Carlsbergen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2009, 05:43 PM
  7. Capturing the Excel AutoFilter Sorting Event-sort and autofilter options
    By Kognyto in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2008, 05:36 PM

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