当前位置: 移动技术网 > IT编程>开发语言>其他编程 > UserAccessList 集合的功能(VBA)

UserAccessList 集合的功能(VBA)

2017年12月01日  | 移动技术网IT编程  | 我要评论
返回一个 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

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网