Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Every week I run a macro to create a pivot table, using source data whose
table size varies weekly, coded as follows: ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatab ase, SourceData:= _ "Sheet1!WklyTblSz").CreatePivotTable TableDestination:="", TableName _ :="PivotTable2" Before running the macro, I would go to the source data to change the cell references for the 'WklyTblSz' worksheet, using INSERTNAMEDEFINE. Is there code I can use so that the references are adjusted depending on the last row and column for the weekly input file? Thanks in advance, cqc |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
get pivot data formula - is it the thing to do | Excel Worksheet Functions | |||
Reference multiple cells in if statement | Excel Worksheet Functions | |||
pivot table | Excel Discussion (Misc queries) | |||
create one pivot from mulitple data sources | Excel Discussion (Misc queries) | |||
Pivot and changing External data source | Excel Discussion (Misc queries) |