I am working on some Excel reports in which we need the amount of tickets that are not being attended (empty cells), according to other criteria.
Currently this is what I have in my code
gsh.Shapes("UnpickedCE").TextFrame.Characters.Text = WorksheetFunction.CountBlank(sh.Range("I8:I" & k + 7))
However, this tells me all the cells in the range, without the filter applied, and if I use .specialCells
gsh.Shapes("UnpickedCE").TextFrame.Characters.Text = WorksheetFunction.CountBlank(sh.Range("I8:I" & k + 7).SpecialCells(xlCellTypeVisible))
I get this error
unable to get the countblank property of the worksheetfunction class
Any idea how to do that count?