I'm trying to copy all my PT from one work book to the other without having the links just the table.
My code doesn't seem to paste anything though.
My code doesn't seem to paste anything though.
Code:
Public Sub ExportExcelChart(xlsObj As Excel.Application)
Dim Pt As PivotTable
Dim Wsht As Worksheet
On Error Resume Next
For Each Wsht In ThisWorkbook.Worksheets
For Each Pt In Wsht.PivotTables
Pt.PivotSelect "", xlDataAndLabel
Selection.Copy
xlsObj.Selection.Paste
Next Pt
Next Wsht
End Sub