VBA UsedObjects 集合用法
时间:2021-01-15 11:13:52|栏目:|点击: 次
返回一个 UsedObjects 集合后,便可用 Count 属性来确定 Microsoft Excel 应用程序中所用对象的个数。
在本示例中,Microsoft Excel 确定已分配的对象的个数,并通知用户。本示例假定在应用程序中执行重新计算,并且在完成前中断重新计算。
Sub CountUsedObjects()
MsgBox "The number of used objects in this application is: " & _
Application.UsedObjects.Count
End Sub
在本示例中,Microsoft Excel 确定已分配的对象的个数,并通知用户。本示例假定在应用程序中执行重新计算,并且在完成前中断重新计算。
复制代码 代码如下:
Sub CountUsedObjects()
MsgBox "The number of used objects in this application is: " & _
Application.UsedObjects.Count
End Sub
上一篇:sqlserver2005 TSql新功能学习总结(数据类型篇)
栏 目:
下一篇:Powershell小技巧之通过EventLog查看近期电脑开机和关机时间
本文标题:VBA UsedObjects 集合用法
本文地址:http://www.codeinn.net/misctech/45565.html






