Excel) (PivotTable.EnableFieldList 属性

如果为 False,则禁用数据透视表字段列表的显示功能。 如果已显示字段列表,则该列表将消失。 默认值为 True。 Boolean 类型,可读写。

语法

表达式。EnableFieldList

表达式 表示 数据透视表 对象的变量。

示例

此示例确定是否可以显示数据透视表的字段列表并通知用户。 本示例假定数据透视表位于活动工作表上。

Sub CheckFieldList() 
 
 Dim pvtTable As PivotTable 
 
 Set pvtTable = ActiveSheet.PivotTables(1) 
 
 ' Determine if field list can be displayed. 
 If pvtTable.EnableFieldList = True Then 
 MsgBox "The field list for the PivotTable can be displayed." 
 Else 
 MsgBox "The field list for the PivotTable cannot be displayed." 
 End If 
 
End Sub

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。