-
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" ??
-
[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'
-
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
-
Forum Rules