Results 1 to 6 of 6

Userform: Make a advanced filter script "filter" when a combobox is altered

Threaded View

  1. #1
    Registered User
    Join Date
    03-25-2009
    Location
    Sweden
    MS-Off Ver
    Excel 2003
    Posts
    49

    Userform: Make a advanced filter script "filter" when a combobox is altered

    Hey!

    Completly new to VBA and macro in general.

    Trying to build a small Userform Program that is gonna search in a worksheet depending on what i choose in my diffrent comboboxes and then return some valuves (havent got to that point yet so not important now)

    There is proberly alot better and smother ways to do this then how im trying to do it (and ofcourse you can come with suggestions)

    My problem now tho is that I start the program and im gonna decide on a Dimension. lets say i choose 2". Then im gonna choose Type

    And heres the thing, i only want to show the diffrent "types" that you can get in the dimension 2". And the only way i could come up with this was using excels advanced filter.


    Two problem occur when using this script


    First, when i start with choosing Dimension i then have to click my "Add" button to paste it in the Advanced filter criteria i have in my workbook and then press filterbutton to acctually filter my "database".

    Second, When i use a Advanced filter script to make this work and "filter on place" my options in my boxes after dimension dosent change since my comboboxes is still looking for my information in the same cells and with the advanced filter those cells is only hidden. I know how to copy the filter to another cell with a macro but i dont know the "script code" to do this. Can anyone help out on this?

    For my first problem is there any code to make this work on altering the cell?

    Feel free to come with suggestions on how i can make filtering databases with a better method then advanced filter script or just help out with code as the script is now.
    Attached Files Attached Files

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