+ Reply to Thread
Results 1 to 3 of 3

No Records Found (autofilter)

  1. #1
    Registered User
    Join Date
    10-11-2012
    Location
    East Boothbay Maine
    MS-Off Ver
    Excel 2007
    Posts
    1

    No Records Found (autofilter)

    I have a macro which filters a record set with a criteria. Sometimes there will be filtered records other times not. I would like to do an If Then Else based on the filter displaying or not displaying rows. What follows is my failed attempt.

    **Code Snippet

    Please Login or Register  to view this content.
    ****End of Code

    Appreciate any help,
    Brian
    Last edited by arlu1201; 10-12-2012 at 02:22 PM. Reason: Use code tags in future.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: No Records Found (autofilter)

    Hi bmcgrath

    Please wrap your code in Code Tags.

    Here's code I've used successfully...adapt to your needs (the Minus 1 is to eliminate the Header Row)
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: No Records Found (autofilter)

    Thanks John.

    Bmcgrath,

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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