+ Reply to Thread
Results 1 to 4 of 4

VBA auto filter error handling

  1. #1
    Registered User
    Join Date
    10-04-2013
    Location
    Ferryhill
    MS-Off Ver
    Excel 2010
    Posts
    25

    VBA auto filter error handling

    Hi,

    I have some code that takes a value from a combo box and stores in a variable, and then filters a worksheet with this criteria. However when a selection from the combo box returns no results it still filters showing no columns. the code is:

    HTML Code: 
    So basically what I want to do, and cant seem to manage is when a selection is made that returns no values, it prompts the user with MsgBox telling them that there are no active projects.

    Any ideas?

    Thanks

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: VBA auto filter error handling

    Perhaps:
    Please Login or Register  to view this content.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Registered User
    Join Date
    10-04-2013
    Location
    Ferryhill
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: VBA auto filter error handling

    Thanks you legend.

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: VBA auto filter error handling

    You are welcome.

+ 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] Auto Filter error in VBA no idea why its happening
    By joshnathan in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-10-2013, 08:57 AM
  2. Auto Filter Sorting Error
    By sinspawn56 in forum Excel General
    Replies: 4
    Last Post: 03-30-2009, 05:59 PM
  3. Auto Filter Paste Error
    By eckert1961 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 08-27-2008, 05:03 PM
  4. [SOLVED] Error handling with a handling routine
    By ben in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-15-2005, 11:06 AM
  5. Auto Filter Error
    By richardreye in forum Excel General
    Replies: 0
    Last Post: 01-05-2005, 11:17 PM

Tags for this Thread

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