+ Reply to Thread
Results 1 to 4 of 4

Userform CheckBox State Filter

  1. #1
    Registered User
    Join Date
    01-17-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    84

    Question Userform CheckBox State Filter

    I’m trying to build a user form where an user can select multiple states and have a filter be applied to column A that selects only those states. Below is what I have from help from the community. I tried following this thread (in the link below), but I don’t have a frame control and I don’t know how to change the order of it with the checkboxes
    http://stackoverflow.com/questions/1...-a-single-cell
    I’m also trying to build a filter for dates in column D in the same user form, but I want to do that by myself.
    Thanks again for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Userform CheckBox State Filter

    use an array to autofilter on

    Please Login or Register  to view this content.
    i left your original code on the file
    ps your Userform was missing checkbox41 so i put one in manually
    Attached Files Attached Files
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    01-17-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    84

    Re: Userform CheckBox State Filter

    How do these lines of code work?
    Please Login or Register  to view this content.
    I'm stepping into the program and I'm trying to figure out how it selects the states.

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Userform CheckBox State Filter

    Please Login or Register  to view this content.
    i have rewrote the code with some statements

    add a watch for MyArr and step thru the code
    what MyArr grow with the amount of the checkbox's you have ticked

    a very basic and simple explaination of dymanic array
    http://www.excel-easy.com/vba/exampl...mic-array.html

    a more in depth link here
    http://www.cpearson.com/excel/vbaarrays.htm
    Last edited by humdingaling; 03-23-2016 at 11:11 PM.

+ 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. States Checkbox Filter Userform
    By rbirch in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-29-2016, 02:16 PM
  2. Checkbox State Defined in Macro
    By IEQFDave in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-13-2015, 12:10 PM
  3. CheckBox state not passing to the sub - Please Help
    By kbbraman in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-11-2012, 12:27 PM
  4. get state of checkbox on worksheet
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-15-2009, 04:05 PM
  5. filter data on all worksheets using checkbox on userform
    By macximus in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-09-2008, 03:33 AM
  6. State of Checkbox - Without Macro
    By RichardBerry in forum Excel General
    Replies: 2
    Last Post: 09-13-2007, 06:48 AM
  7. [SOLVED] How I get CheckBox state on a Sheet.
    By Cactus [ÏÉÈËÇ&ograv in forum Excel General
    Replies: 6
    Last Post: 01-14-2005, 11:07 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