+ Reply to Thread
Results 1 to 3 of 3

Autofilter reset problem

  1. #1
    Forum Contributor
    Join Date
    04-21-2006
    Location
    Australia
    MS-Off Ver
    O365 PC Version 2301
    Posts
    122

    Autofilter reset problem

    This code is fine if the autofilter selections is filtering data but breaks when the autofilter is already on show all. Problem is I need to ensure that the autofilter is 'reset' to show all before doing the delete.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning Aussie_Striker

    Couple of ways to do this. Determine if the autofilter is active and only run the code if it is. Or easier, stick in an error trap to force your code to continue if it comes across an error :

    Please Login or Register  to view this content.
    The first On Error statement sets up the error trap, the second resets it so it won't affect other parts of your code.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Contributor
    Join Date
    04-21-2006
    Location
    Australia
    MS-Off Ver
    O365 PC Version 2301
    Posts
    122
    It's actually 9:15pm here...lol, that works well. I haven't used error traps before but sure I will have to in future with the complex things I am trying. Thanks for that.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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