The code below filters a worksheet (ws_salt) of all rows that fall between an lower date (f_lr) and upper date (f_ur).
If Then code then determines whether the filter was returned empty.
In my testing on particular date rate that should be empty, displays empty after the filter is applied, but the "if worksheetFunction.Count(.Cells.SpecialCells(xlCellTypeVisible)) = 0" is failing. It is being treated as though there is filtered data, when it shouldn't. This worksheet does have data in it that doesn't match the filter criteria, so the filter appears to be working (it's coming back empty).
I use the exact same on another similar worksheet (that doesn't yet contain any data let alone data meeting the criteria) and it works fine.![]()
Please Login or Register to view this content.
Bookmarks