Hi guys,
I' trying to create a Macro that creates Pivot tables...
The problem i'm encountring is that after recording the Macro, when i try to
re-run it, it doesn't pick all the Fields..
It's not finding all columns(fields) required.. I picks on only one field..
I can't figure out what i'm doing worng.
The code is not too complex.... i'm just trying to create a blank pivot that ready for drag and drop of fields.. !!!
Plz help !!!!!!
Sub Pivot_Create_2()
'
' Pivot_Create_2 Macro
' Macro recorded 29/01/2008 by Administrator
'
'
Cells.Select
ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:= _
"TRACKING!C1:C20").CreatePivotTable TableDestination:="", TableName:= _
"PivotTable4", DefaultVersion:=xlPivotTableVersion10
ActiveSheet.PivotTableWizard TableDestination:=ActiveSheet.Cells(3, 1)
ActiveSheet.Cells(3, 1).Select
End Sub
Bookmarks