Partilhar via


CalculatedMember.Dynamic Property

Gets whether the specified named set is recalculated with every update.

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

Syntax

'Declaration
ReadOnly Property Dynamic As Boolean
    Get
'Usage
Dim instance As CalculatedMember
Dim value As Boolean

value = instance.Dynamic
bool Dynamic { get; }

Property Value

Type: System.Boolean
true if the specified named set is recalculated with every update; otherwise, false.

Remarks

Read-only.

true if the named set is recalculated with every update; otherwise false.

The value of this property corresponds to the setting of the Recalculate set with every update check box in the New/Modify Set dialog box that is available when a named set is created or edited. To create a new named set from data in a PivotTable based on an OLAP data source, click the PivotTable, click Field, Items, & Sets on the PivotTable Tools Options tab on the ribbon, click Manage Sets, click New in the Set Manager dialog box, and then click Create Set using MDX. This will display the New Set dialog box, which contains the Recalculate set with every update check box. Similarly, if you select an existing named set in the Set Manager dialog box, and then click Edit, the Modify Set dialog box is displayed.

This property along with the DisplayFolder and HierarchizeDistinct properties can only be read for named sets (which are represented by CalculatedMember objects where the Type property equals xlCalculatedSet). These properties for cannot be read for calculated members or measures (which are represented by CalculatedMember objects where the Type property equals xlCalculatedMember). If you attempt to read these properties for calculated members or measures, a run-time error is raised.

See Also

Reference

CalculatedMember Interface

CalculatedMember Members

Microsoft.Office.Interop.Excel Namespace