Consulting

Results 1 to 2 of 2

Thread: filter multiple columns simultaneously using Vbscript

  1. #1

    filter multiple columns simultaneously using Vbscript

    Au 10 63 1888
    Ad 11 50 555
    Au 10 51 888
    Ad 10 63 222
    Au 11 55 8798


    hi my table looks similar to the above

    i have to filter first three columns at the same time

    after applying filters for first two columns, im not able to filter the third column using the required data,
    required data in third column is hidden after applying filter for the 2nd column, my method for filtering data is

    With ActiveSheet
        
        .Cells(1).AutoFilter 1, "Ad"
        .Cells(2).AutoFilter 4, 11
        .Cells(3).AutoFilter 3, 63


    please suggest me few ideas in sorting the issue


    Thanks in advance
    Satish

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,730
    Location
    1. VBscript is something different than VBA = Visual Basic for Applications

    2. A group of filters like that usually AND together and only list the rows that meet all the criteria. Are you looking for row that have "Ad" in column 1 OR 11 in column 2 OR 63 in column 3?
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

Posting Permissions

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