主题
CountLarge (属性)
返回一个值,该值表示集合中的对象数。只读。
示例
python
#本示例显示 A1:C3 单元格区域内的单元格数量
def test():
print(Range("A1:C3").CountLarge)
python
#本示例选中 C2:F4 单元格,并显示选中区域中单元格的数量
def test():
Range("C2:F4").select()
print(Selection.CountLarge)