Hi,
I am coding a macro, and I would like the macro to create a pivot from Data sheet "All Dated". however when the macro creates the pivot, I want the pivot table to select all cells with data in them, ignoring all blank/empty cells.
I don't want fixed cells selected for the creation of the pivot because the Data is variable.
I have this code:
ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:= _
"'All Dated'!R4C1:R3622C28").CreatePivotTable TableDestination:= _
"'[Data Dump.xls]Dated Pivot'!R3C1", TableName:="PivotTable15", _
DefaultVersion:=xlPivotTableVersion10
For reference purposes: "All Dated" is where the data is coming from
"Data Dump/ Dated Pivot" is the destination
Please Advise.
Thanks,
A
Bookmarks