Consulting

Results 1 to 5 of 5

Thread: VBA - Advanced filter with data Validation

  1. #1
    VBAX Newbie
    Joined
    May 2010
    Posts
    3
    Location

    VBA - Advanced filter with data Validation

    Hi there, new to the forum. Hopefully can receive some much needed assistance!

    I am trying to do an advanced filter with a Data Validation List on a set of data. Have spent hours looking about online and found a VBA example close to what I would like (attached zip file). Having no VBA experience means I am having problems editing this.

    I have attached a draft model of what I am hoping to achieve (Example Sheet .xls), Basically I have my Lists and raw data on the second tab and what I would like to do is adjust cells B2, E2 and H2 so that from A5:F20 will display the filtered data. Is this at all possible?

    Alternatively could the zipped example be replicated with just the Date of Return Field and have the results sorted by Business area, and then by division? So if I looked up May 2010 I could see the absences sorted by Business Area, and then Division?

    Any help would be immensely appreciated! Thanks in advance.

  2. #2
    VBAX Newbie
    Joined
    May 2010
    Posts
    3
    Location
    Example spreadsheet.

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Why don't you just add AUtofilter to the headings?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    VBAX Expert
    Joined
    Feb 2005
    Location
    Nanaimo, British Columbia, Cananda
    Posts
    568
    Location
    Hi R

    This does the 1 criteria jig. Copies data by date then sorts by BA, then Div. I added a copy/sort for 'All' as well as there was nothing in the example for 'All' just a blank spot.

    It could do 3 criteria using VBA for sure perhaps even using the advanced filter but that's a lot more work, so consider this a free sample <grin>
    Cheers,

    dr

    "Questions, help and advice for free, small projects by donation. large projects by quote"

    http:\\www.ExcelVBA.joellerabu.com

  5. #5
    VBAX Newbie
    Joined
    May 2010
    Posts
    3
    Location
    Thats great. Thanks alot! The autofilter feature is also very helpfuk. Thanks again to the both of you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •