+ Reply to Thread
Results 1 to 2 of 2

Autofilter Confusion

  1. #1
    Forum Contributor
    Join Date
    03-26-2015
    Location
    Cookeville, TN
    MS-Off Ver
    Excel 365
    Posts
    202

    Autofilter Confusion

    I'm trying to understand filtering via VBA. Apparently there can be only one Autofilter object per worksheet, since (a) there is no Autofilters collection, and (b) you can't manually filter more than one table at a time on a worksheet. So here's what may be a stupid question:

    What's the difference between Worksheet.FilterMode and Worksheet.Autofilter.FilterMode? Are these the same thing?

    Likewise, what's the difference between Worksheet.ShowAllData and Worksheet.Autofilter.ShowAllData? Are these identical? When should I use one versus the other?

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Autofilter Confusion

    What's the difference between Worksheet.FilterMode and Worksheet.Autofilter.FilterMode?
    As far as I can tell they work exactly the same.

    Likewise, what's the difference between Worksheet.ShowAllData and Worksheet.Autofilter.ShowAllData?
    As far as I can tell they work exactly the same.

    -------------------------------
    The above answers were from testing a Sheet that contained 'AutoFilter'.

    The syntax in Microsoft documentation I have seen is the shorter syntax, which is probably the Microsoft 'approved syntax'. The other syntax which currently works may stop working in a future version of Excel.
    Please Login or Register  to view this content.
    Lewis

+ 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] =SUM Confusion
    By CynideHigh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-12-2017, 02:41 PM
  2. Replies: 4
    Last Post: 03-16-2013, 08:33 AM
  3. [SOLVED] If, And, Or Confusion!
    By amyindubai in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-10-2012, 04:12 PM
  4. Confusion with last row
    By LiLi1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-15-2011, 06:09 PM
  5. Else If Confusion in VBA
    By SAsplin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2011, 10:06 AM
  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

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