PivotTable.TableStyle Property

Returns or sets the style used in the body of the PivotTable report. The default value is a null string (no style is applied by default). Read/write String.

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

Syntax

'Declaration
Property TableStyle As String
    Get
    Set
'Usage
Dim instance As PivotTable
Dim value As String

value = instance.TableStyle

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

Property Value

Type: System.String

Remarks

This style is used as the default style for the background area, and it’s applied before any user formatting.

See Also

Reference

PivotTable Interface

PivotTable Members

Microsoft.Office.Interop.Excel Namespace