UserAccessList 集合的功能(VBA)
返回一个 useraccesslist 集合后,便可用 count 属性来确定访问受保护区域的用户数量。在下例中,microsoft excel 将访问第一个受保护区域的用户的数量通知给用户。本示例假定受保护的区域位于活动工作表上。
sub usedeleteall()
dim wkssheet as worksheet
set wkssheet = application.activesheet
' notify the user the number of users that can access the protected range.
msgbox wkssheet.protection.alloweditranges(1).users.count
end sub
如对本文有疑问,
点击进行留言回复!!
网友评论