Dim emptyCells As Integer emptyCells = ActiveSheet.range("A:A").Cells.SpecialCells(xlCellTypeConstants).Count