返回一个 usedobjects 集合后,便可用 count 属性来确定 microsoft excel 应用程序中所用对象的个数。
在本示例中,microsoft excel 确定已分配的对象的个数,并通知用户。本示例假定在应用程序中执行重新计算,并且在完成前中断重新计算。
sub countusedobjects()
msgbox "the number of used objects in this application is: " & _
application.usedobjects.count
end sub
如对本文有疑问,
点击进行留言回复!!
网友评论