计算工作表中的单元格数

Contents
[ ]

您可以使用Cells.Count或者Cells.CountLarge属性如下面给出的代码示例所示。