如果允许用户在受保护的工作表上处理数据透视表,则返回
True。
Boolean 类型,只读。
语法
表达式.AllowUsingPivotTables
表达式 一个代表 Protection 对象的变量。
说明
AllowUsingPivotTables 属性应用于非
OLAP 源数据?(非 OLAP 源数据:非 OLAP 源数据是数据透视表或数据透视图使用的基本数据,该数据来自
OLAP 数据库之外的源。这些数据源包括关系数据库、 ET 工作表中的清单以及文本文件数据库。)。
可以使用 Protect
方法参数设置 AllowUsingPivotTables 属性。
示例
本示例允许用户访问数据透视表并通知用户。本示例假定非 OLAP 数据透视表位于活动的工作表上。
| 示例代码 |
function ProtectionOptions() {
ActiveSheet.Unprotect()
// Allow pivot tables to be manipulated on a protected worksheet.
if(ActiveSheet.Protection.AllowUsingPivotTables == false) {
ActiveSheet.Protect(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, true)
}
MsgBox("Pivot tables can be manipulated on the protected worksheet.")
}
|