如果数据透视表字段包含成员属性,则返回
True。
Boolean 类型,只读。
语法
表达式.IsMemberProperty
表达式 一个代表 PivotField 对象的变量。
说明
如果没有使用联机分析处理 (OLAP)?(OLAP:为查询和报表(而不是处理事务)而进行了优化的数据库技术。OLAP
数据是按分级结构组织的,它存储在多维数据集而不是表中。) 数据源,则该属性将返回一个运行时错误。
示例
本示例确定数据透视表字段是否包含成员属性,并通知用户。本示例假定数据透视表位于活动的工作表上,并与 OLAP 数据源相连。
示例代码 |
function CheckForMembers() {
let pvtTable = ActiveSheet.PivotTables(1)
let pvtField = pvtTable.PivotFields(1)
// Determine if member properties exist and notify user.
if(pvtField.IsMemberProperty == true) {
MsgBox("The PivotField contains member properties.")
}
else {
MsgBox("The PivotField does not contain member properties.")
}
}
|