Consulting

Results 1 to 3 of 3

Thread: fitler by keyword

  1. #1

    Post fitler by keyword

    Hi everyone.

    I need to filter my table by keyword; this is what I did

    ActiveSheet.ListObjects("Tabla1").Range.AutoFilter Field:=5, Criteria1:= _
    "Special permit"

    as you can see I'm filtering for "Special permit" but the problem is that the database I'm working on has the date of each permit in the same cell and it's different every time ( example "Special permit: 27/03/2013").

    How can I filter just by "Special permit" ??

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    [VBA]ActiveSheet.ListObjects("Tabla1").Range.AutoFilter Field:=5, Criteria1:= _
    "Special permit*"[/VBA]

    Add an asterisk as a wildcard
    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'

  3. #3
    Thank you a lot. You've been very helpful.

    Regards

Posting Permissions

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