+ Reply to Thread
Results 1 to 4 of 4

Auto-filter Macro linked to drop down box selection

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2013
    Posts
    32

    Unhappy Auto-filter Macro linked to drop down box selection

    Hi - Just joined the forum after finding it a useful source for several months now.

    I have a sixteen column table of data (called 'Detail Data') and summary on a second tab. On this summary tab I've added three drop down boxes for the user to select from, then a Macro button that they can click which filters the detail data according to the three drop down criteria.

    Problem is... I would like the macro to not use the drop down criteria if it equals blank. For instance, if somebody only wanted to filter by two of the three criteria. Otherwise the blank cell is selected as filter criteria and results in no detail data being displayed.
    I'm very much a novice in the VBA dept (at the recording, then faffing about trying to edit small sections kind of level) - any help would be much appreciated.

    Windows XP
    Excel 2010

    Please Login or Register  to view this content.

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Auto-filter Macro linked to drop down box selection

    Try this,

    Please Login or Register  to view this content.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Registered User
    Join Date
    11-14-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2013
    Posts
    32

    Re: Auto-filter Macro linked to drop down box selection

    JapanDave - You're an absolute star.

    Thanks very much. I'll study this code for future use.

    Gregg

  4. #4
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Auto-filter Macro linked to drop down box selection

    No problem, let me know if you get stuck.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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