I am trying to use this line
Code: Select all
Debug.Print Application.WorksheetFunction.CountIf(ws.Range("A4:A9"), "<>""""")
I got the result 6 while there are only two cells not empty. Any idea?
I also tried CountA `Debug.Print Application.WorksheetFunction.CountA(ws.Range("A4:A9"))` but the same result `6`