Consulting

Results 1 to 4 of 4

Thread: 2nd criteria filter-search in lisform

  1. #1

    2nd criteria filter-search in lisform

    Hello forum

    i have this macro, and i want to add a second criteria for filter and search
    Her is the file with examples.
    it works nice for one criteria , but when i chose to use the second criteria it doesn't work on the filter area.
    Little help, Thanks

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,885
    worked here just fine on both champs..
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    It seems to work as coded but it doesn't filter on whole values. esd will return esd & esdI.
    A couple of suggestions
    Use AfterUpdate instead of Change events, unless you really need them
    For filling compbos try
    [VBA]
    Private Sub CBO_Fill()
    Dim oRng As Range
    'Remplit la Combo
    With Feuil1
    Set oRng = Range(.Cells(1, 1), .Cells(1, Columns.Count).End(xlToLeft))
    ComboBox1.List = Application.Transpose(oRng)
    ComboBox2.List = Application.Transpose(oRng)
    End With
    ComboBox1.ListIndex = 0
    ComboBox2.ListIndex = 0
    End Sub

    [/VBA]
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  4. #4
    Yes is working faster, the think is that , for the first filter is ok, but the second has to work on the result of first one , and so on for the 3rd.

Posting Permissions

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