IPivotTables.Add Method
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function Add ( _
PivotCache As PivotCache, _
TableDestination As Object, _
TableName As Object, _
ReadData As Object, _
DefaultVersion As Object _
) As PivotTable
'Usage
Dim instance As IPivotTables
Dim PivotCache As PivotCache
Dim TableDestination As Object
Dim TableName As Object
Dim ReadData As Object
Dim DefaultVersion As Object
Dim returnValue As PivotTable
returnValue = instance.Add(PivotCache, _
TableDestination, TableName, ReadData, _
DefaultVersion)
PivotTable Add(
PivotCache PivotCache,
Object TableDestination,
Object TableName,
Object ReadData,
Object DefaultVersion
)
Parameters
- PivotCache
Type: Microsoft.Office.Interop.Excel.PivotCache
- TableDestination
Type: System.Object
- TableName
Type: System.Object
- ReadData
Type: System.Object
- DefaultVersion
Type: System.Object
Return Value
Type: Microsoft.Office.Interop.Excel.PivotTable