Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to make the end of my pivot table range the last cell in the
worksheet (actually the next to last cell but I can't get to the last cell yet). Anyone know the syntax for ths? Here's my current failed experiment, substituting a range for the hard coded R1C1:R2000C41: ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatab ase, SourceData:= _ "'Cost Data'!Range(Selection, ActiveCell.SpecialCells(xlLastCell))").CreatePivot Table TableDestination:="", _ TableName:="PivotTable2", DefaultVersion:=xlPivotTableVersion10 ActiveSheet.PivotTableWizard TableDestination:=ActiveSheet.Cells(3, 1) ActiveSheet.Cells(3, 1).Select With ActiveSheet.PivotTables("PivotTable2").PivotFields ("PLINE") .Orientation = xlRowField .Position = 1 End With Any thoughts are welcome. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Entering Variable in a Pivot Table | Excel Discussion (Misc queries) | |||
selecting variable rows in a macro that creates a pivot table | Excel Programming | |||
Pivot Table variable range | Excel Programming | |||
Im so close. Need variable range for the pivot table | Excel Programming | |||
Pivot Table - Object variable or with block variable not set? | Excel Programming |