Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How can I get a variable range in this VBA code instead of this hard-coded
range (R1C1:R1345C25)? Every time I run my Excel macro, I will have a different amount of rows to include in the PivotTable code. ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatab ase, SourceData:= _ "'Total Open Discrepancies'!R1C1:R1345C25").CreatePivotTable TableDestination _ :="", TableName:="PivotTable1" |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't set pivot table object variable | Excel Programming | |||
Pivot Table Range Address, Row & Column numbers | Excel Programming | |||
how do I hard code a variable range for a pivot table in vba? | Excel Programming | |||
VBA Code for a pivot table to open database and to reference table current page | Excel Programming | |||
Pivot Table - Object variable or with block variable not set? | Excel Programming |