Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to apply an AutoFilter to records on "Sheet 2" using criteria
chosen from 7 lists on "Sheet 1" The filtering works if each criteria contains a value, but if one is left blank no records are shown. I have tried adding the value "(all)" as a default into the lists on Sheet 1 but that doesn't work either. How can I skip 'blank' entries when filtering using code? (current code below) Thanks Trevor Sub FilterResult() myFilter = Array("ctDescription", "ctMarket", "ctPOB", "ctChannel", _ "ctCategory", "ctQuality", "ctCompetition") For i = 0 To 6 x = myFilter(i) Selection.AutoFilter Field:=i + 1, Criteria1:=Range(x), _ VisibleDropDown:=False Next i End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
XL2002 - VLOOKUP with variable Sheet Name | Excel Worksheet Functions | |||
XL2002 - Offset function on inactive sheet... | Excel Programming | |||
AutoFilter criteria | Excel Programming | |||
AutoFilter Pull Criteria from one sheet and custom filter on other | Excel Programming | |||
Use sheet name as search string or autofilter criteria | Excel Programming |