CalculatedMember Object
Excel Developer Reference |
Represents the calculated fields and calculated items for PivotTables with Online Analytical Processing (OLAP) data sources.
Remarks
Use the Add method or the Item property of the CalculatedMembers collection to return a CalculatedMember object.
With a CalculatedMember object you can check the validity of a calculated field or item in a PivotTable using the IsValid property.
Note |
---|
The IsValid property will return True if the PivotTable is not currently connected to the data source. Use the MakeConnection method before testing the IsValid property. |
Example
The following example notifies the user if the calculated member is valid or not. This example assumes a PivotTable exists on the active worksheet that contains either a valid or invalid calculated member.
Visual Basic for Applications |
---|
|
See Also