Compartilhar via


CalculatedMember Interface

Represents the calculated fields and calculated items for PivotTables with Online Analytical Processing (OLAP) data sources.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
<GuidAttribute("00024455-0000-0000-C000-000000000046")> _
<InterfaceTypeAttribute()> _
Public Interface CalculatedMember
'Usage
Dim instance As CalculatedMember
[GuidAttribute("00024455-0000-0000-C000-000000000046")]
[InterfaceTypeAttribute()]
public interface CalculatedMember

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.

See Also

Reference

CalculatedMember Members

Microsoft.Office.Interop.Excel Namespace