I have one doubt regarding PIVOT TABLE.
Is it possible to add multiple pivot tables in single sheet or sheet which has already pivot table?
I have a code for creating pivot in new sheet. However, i couldn't add more pivot table in single sheet.?
Here is my code
Sub summary_overall3()
Dim wksSource As Worksheet
Dim wksDest As Worksheet
Dim rngSource As Range
Dim rngDest As Range
Dim LastRow As Long
Dim LastCol As Long
Dim destin As Range
Sheets("elog_status").Cells.Clear
'Sheets("Pivot").Visible = True
Set wksSource = Worksheets("Reconsile")
Set destin = "R1C" & Range("A1").CurrentRegion.Columns.Count + 3
Set wksDest = Worksheets("Overall summary") '"R1C" & Range("A1").CurrentRegion.Columns.Count + 3
With wksSource
LastRow = Worksheets("Reconsile").Range("A1").End(xlDown).Row
LastCol = Worksheets("Reconsile").Range("A1").End(xlToRight).Column
Set rngSource = .Range("A1", .Cells(LastRow, LastCol))
' Set rngSource = Sheets("Reconsile").Range("A1:AZ")
End With
Set rngDest = wksDest.Range("A3")
ActiveSheet.PivotTableWizard _
SourceType:=xlDatabase, _
SourceData:=rngSource, _
TableDestination:=destin, _
TableName:="Reconsile"
With wksDest.destin.PivotTables("Reconsile")
.PivotFields("Owner").Orientation = xlRowField
.PivotFields("country").Orientation = xlDataField
'.PivotFields("ACCOUNT_NO").Orientation = xlRowField
.PivotFields("countyr").Orientation = xlColumnField
'.PivotFields("AMOUNT_EUR").Orientation = xlDataField
End With
ActiveSheet.PivotTables("Reconsile").TableStyle2 = "Reconsile"
End Sub
Kindly suggest me to solve this.
Thanks in advance.