+ Reply to Thread
Results 1 to 4 of 4

Vba if my filter returns no value

  1. #1
    Forum Contributor
    Join Date
    06-01-2015
    Location
    Chennai,India
    MS-Off Ver
    Microsoft Office 2021
    Posts
    146

    Talking Vba if my filter returns no value

    Hi all,

    i have the below code wherein it will delete all data in column B except #N/A but sometimes my filter may not have any data except #N/A so i need skip on the next sub routine.

    Can someone help me on this ? Where should I add those rules ?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Vba if my filter returns no value

    It would be easier to help and test possible solutions if you could attach a copy of your file. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary). See the yellow banner at the top of this page for instructions to attach a file.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Contributor
    Join Date
    06-01-2015
    Location
    Chennai,India
    MS-Off Ver
    Microsoft Office 2021
    Posts
    146

    Re: Vba if my filter returns no value

    Hi Mumps1,

    I have attached my sample report wherein with the above code I will delete all the row except #N/A but I need to include the rule if my rule doesn't exists so that I should stop running the code.

    Please assist.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Vba if my filter returns no value

    How about
    Please Login or Register  to view this content.

+ 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] array filter that returns text if an exact match only
    By mcdermott2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2015, 06:13 PM
  2. [SOLVED] filter returns nothing
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-14-2014, 03:51 PM
  3. Filter for workdays returns nothing.
    By frank35 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-09-2014, 02:19 PM
  4. Advanced Filter : One Criteria Cell Breaks the Filter - Returns Only Headers
    By PaulGW in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2014, 10:06 AM
  5. adv. filter unique records only returns duplicates
    By stratplayer in forum Excel General
    Replies: 4
    Last Post: 01-31-2011, 05:52 PM
  6. Advanced Filter - Unique Values Macro Returns 1st Value Twice
    By r101 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-11-2011, 05:53 PM
  7. [SOLVED] Auto Filter returns no results
    By terrapinie in forum Excel General
    Replies: 2
    Last Post: 01-07-2006, 04:10 AM

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