Compartilhar via


PivotField.CurrentPageName Property

Returns or sets the currently displayed page of the specified PivotTable report. The name of the page appears in the page field. Note that this property works only if the currently displayed page already exists. Read/write String.

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

Syntax

'Declaration
Property CurrentPageName As String
    Get
    Set
'Usage
Dim instance As PivotField
Dim value As String

value = instance.CurrentPageName

instance.CurrentPageName = value
string CurrentPageName { get; set; }

Property Value

Type: System.String

Remarks

This property applies to PivotTables that are connected to an OLAP data source. Attempting to return or set this property with a PivotTable that is not connected to an OLAP data source will result in a run-time error.

See Also

Reference

PivotField Interface

PivotField Members

Microsoft.Office.Interop.Excel Namespace