Hi
All cells in my sheet contains formula. I'm trying to use the advance filter to filter out the non blank cells "<>". However, it seems that The advance filter doesn't recognize cell as empty while it has a formula.
I'm using the following VBA:
Any thought?
All cells in my sheet contains formula. I'm trying to use the advance filter to filter out the non blank cells "<>". However, it seems that The advance filter doesn't recognize cell as empty while it has a formula.
I'm using the following VBA:
VBA Code:
Sub CreateAdvancedFilter()
Dim rngDatabase As Range
Dim rngCriteria As Range
'define the database and criteria ranges
Set rngDatabase = Sheets("Details").Range("A1:BS2700")
Set rngCriteria = Sheets("ADF").Range("A1:BS2")
'filter the database using the criteria
rngDatabase.AdvancedFilter xlFilterInPlace, rngCriteria
Sheets("Details").Activate
End Sub