Skip to content
本页内容

Count (属性)

返回一个 Integer 值,它代表集合中对象的数量。

示例

python
#本示例显示活动工作表上包含 B2 单元格的列表中列的数量
def test():
    listObj = Application.ActiveSheet.Range("B2").ListObject
    print(listObj.ListColumns.Count)