+ Reply to Thread
Results 1 to 3 of 3

In VBA, I can't using multiple (more than 3 ) criteria's in Autofilter method

  1. #1
    Forum Contributor
    Join Date
    01-06-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    118

    In VBA, I can't using multiple (more than 3 ) criteria's in Autofilter method

    Hi,


    I want to delete all rows at once, If store names does not contains 101,119,146,157,177, 182. For this , I used Autofilter method & specialcells(xlcelltypevisible) option. But code showing error as "Application Defined Error, Object defined error".

    I attached sample example file. Please go through it.

    Thank you in advance



    Regards
    Shiva
    Attached Files Attached Files
    Last edited by shiva_raj; 04-10-2019 at 12:22 AM. Reason: previous title is not understandable to viewers

  2. #2
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: AutoFilter is not working

    Please note that I haven't declared all your variables (and only amended the bits I needed to do to get it working)....

    Please Login or Register  to view this content.
    Last edited by WasWodge; 04-08-2019 at 12:30 AM.
    If my solution worked (or not) please let me know. If your question is answered then please remember to mark it solved

    Computers are like air conditioners. They work fine until you start opening windows. ~Author Unknown

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: AutoFilter is not working

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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 in VBA not working properly
    By twaccess in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-13-2015, 09:10 AM
  2. Autofilter not working
    By Zeos6 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-04-2013, 03:43 PM
  3. Autofilter not working
    By psbailey42 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-26-2013, 07:15 AM
  4. delete with autofilter not working
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2011, 03:42 PM
  5. autofilter not working
    By ACTBOB in forum Excel General
    Replies: 2
    Last Post: 07-21-2006, 05:20 PM
  6. [SOLVED] autofilter isnt working
    By john mcmichael in forum Excel General
    Replies: 2
    Last Post: 10-19-2005, 03:05 PM
  7. Autofilter Not working
    By cyndi in forum Excel General
    Replies: 3
    Last Post: 02-14-2005, 07:06 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