+ Reply to Thread
Results 1 to 8 of 8

I need a message to pop up when there are no results in the autofilter selections.

  1. #1
    Registered User
    Join Date
    12-13-2019
    Location
    Milwaukee, WI
    MS-Off Ver
    Excel 2010
    Posts
    5

    I need a message to pop up when there are no results in the autofilter selections.

    Hi everyone,

    I recently created a directory where our attorneys can choose options from a drop down menu and Excel will autofilter and pull up the results that match with those options.

    What I would like to do is, when no results match with the selections they choose, a pop up message that lets the user know, "No results found."

    I know how to create a simple message box, but I am not sure how to link it with the autofilter so that the message pops up automatically when no results are found.

    Currently the autofilter code is:
    Sheet code:

    Please Login or Register  to view this content.
    Module code:
    Please Login or Register  to view this content.
    I am very very new to VBA. Thanks in advance!
    Last edited by koneill828; 12-13-2019 at 11:21 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: I need a message to pop up when there are no results in the autofilter selections.

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I did it for you this time. Please read forum rules. Thanks

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: I need a message to pop up when there are no results in the autofilter selections.

    Administrative note
    Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version. Your profile does not indicate your version.
    Thanks

  4. #4
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: I need a message to pop up when there are no results in the autofilter selections.

    Untested as no workbook
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-13-2019
    Location
    Milwaukee, WI
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: I need a message to pop up when there are no results in the autofilter selections.

    That didn't work, but thank you! I can't attach the file because it contains confidential information, but I can include a picture if that's helpful at all?

    Attachment 653820

  6. #6
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: I need a message to pop up when there are no results in the autofilter selections.

    Picture in this instance no good. Banner at top of page gives instruction on removing such data

  7. #7
    Registered User
    Join Date
    12-13-2019
    Location
    Milwaukee, WI
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: I need a message to pop up when there are no results in the autofilter selections.

    Here is an example without confidential information. The autofilter isn't working on it and I can't figure out why. The autofilter on my actual directory is still working as it should.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-13-2019
    Location
    Milwaukee, WI
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: I need a message to pop up when there are no results in the autofilter selections.

    Okay, example directory is attached and autofilter is working again.
    Attached Files Attached Files

+ 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. Autofilter column based on ListBox selections
    By garywood84 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2017, 05:18 PM
  2. Autofilter with multiple checkboxes selections on userform with vba
    By Sravanmonty in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2014, 08:37 PM
  3. Autofilter Based on Dropdown menue selections
    By ghoneim in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-17-2013, 11:46 AM
  4. Autofilter selections on Chart
    By bhofsetz in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-08-2012, 05:36 PM
  5. Mandatory Selections in AutoFilter
    By FallingDown in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2012, 09:43 AM
  6. [SOLVED] Improve visibility of Excel AutoFilter Filter selections
    By Cec Tarasoff in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 AM
  7. [SOLVED] Improve visibility of Excel AutoFilter Filter selections
    By Cec Tarasoff in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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