WorksheetFunction.CountBlank(Range) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Counts empty cells in a specified range of cells.
public:
double CountBlank(Microsoft::Office::Interop::Excel::Range ^ Arg1);
public double CountBlank (Microsoft.Office.Interop.Excel.Range Arg1);
Public Function CountBlank (Arg1 As Range) As Double
Parameters
- Arg1
- Range
The range from which you want to count the blank cells.
Returns
Remarks
Cells with formulas that return "" (empty text) are also counted. Cells with zero values are not counted.