主题
Count (属性)
返回一个 int 值,它代表集合中对象的数量。
示例
python
#此示例将 A1 单元格的最后一个字符设为上标字符
def test():
n = Application.Worksheets.Item("Sheet1").Range("A1").Characters.Count
Application.Worksheets.Item("Sheet1").Range("A1").Characters(n, 1).Font.Superscript = True