+ Reply to Thread
Results 1 to 11 of 11

Advanced filter mode

  1. #1
    Registered User
    Join Date
    11-09-2011
    Location
    Bratislava
    MS-Off Ver
    Excel 2010
    Posts
    47

    Advanced filter mode

    Hello,

    I have form with toggle buttons. On every button is a code to filter data. I want to have there code to enable or disable that filter (not all filters). I want that because users can press one or more buttons to filter data, and when they press again any button it clear every filter in range. I want to clear only that filter on button, which they pressed. Now I use this code:

    Please Login or Register  to view this content.
    Problem is in this part:

    Please Login or Register  to view this content.
    there is .ShowAllData, but I dont know the code which can replace that.

    Can someone help me?
    Last edited by misop; 01-07-2013 at 06:09 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: Advanced filter mode

    Will this help you.
    Please Login or Register  to view this content.
    Kind regards, Harry.

  3. #3
    Registered User
    Join Date
    11-09-2011
    Location
    Bratislava
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Advanced filter mode

    Thanks Harry,

    I think it help me, but one more thing... if I press two buttons, It do not filter correctly:

    Please Login or Register  to view this content.
    In the second filter is entry, which do not respond to Criteria1 and there isnt entry from rd 3, which respond to Criteria1 of second button

    The second button begin filtering on row 7... I dont know why
    Last edited by misop; 01-03-2013 at 07:13 AM.

  4. #4
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: Advanced filter mode

    Maybe you can upload your file.

  5. #5
    Registered User
    Join Date
    11-09-2011
    Location
    Bratislava
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Advanced filter mode

    here is... on the first row you find button Filter... under this is form with filter buttons
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: Advanced filter mode

    Remove the filters in row 2.
    Add new filters.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-09-2011
    Location
    Bratislava
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Advanced filter mode

    Thank you,

    I think it isnt still working. First button "Budovy" is working well, but when you press second button "Inzinierske_stavby" there are records which doesnt met criteria and third button "Rezidencne_objekty" too, there is still record which doesnt met criteria.

    EDIT: it filter only first 9 rows, 10 row is unfiltered with every button. I want to filter whole number of rows (there is no exact number.. rows are increasing every week)

    Here is code for three buttons:

    Please Login or Register  to view this content.
    Last edited by misop; 01-03-2013 at 09:17 AM.

  8. #8
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: Advanced filter mode

    It works fine to me.

    "Budovy" and "Inzinierske_stavby" has the same sortfield.
    There are records "Budovy" and "Inzinierske_stavby" as well.
    So if you filter "Budovy" its shows 4 items.
    Filter then "Inzinierske_stavby", it will show 2 items.
    The third button doesn't have criteria.

  9. #9
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: Advanced filter mode

    If you want all the three items.
    Put in in a array.
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    11-09-2011
    Location
    Bratislava
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Advanced filter mode

    I addded into H10 entry Inžinierske stavby... when I press button Budovy this row shouldnt be in filter but he is... The third button has criteria "Rezidenčné", but when I press this button, there are entries which doesnt meet this criteria (Priemyselné objekty a sklady,...)

  11. #11
    Registered User
    Join Date
    11-09-2011
    Location
    Bratislava
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Advanced filter mode

    This code helped me:

    Please Login or Register  to view this content.
    one more question: is there possibility to include other filters into pressed buttons? (when I press Inzinierske_stavby and Rezidencne_objekty there should be no entries). Now when I press 1st Inzinierske_stavby and 2nd Rezidencne_objekty, it filter me only Rezidenčné objekty
    Last edited by misop; 01-03-2013 at 10:07 AM.

+ Reply to Thread

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