Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Any VBA/Pivot table experts out there?
I have two identical workbooks, one old, one new. The only difference between them is the data. In the old one I can set up a pivot table using code - the new one gives the error with exactly the same code: 'Unable to get the PivotFields property of the PivotTable class' The error occurs in the first row of the following code: With ActiveSheet.PivotTables("PivotTable2").PivotFields ("Mode") .Orientation = xlRowField .Position = 1 End With I can set up the pivot table in the new sheet manually every time but when I try it with code it fails. Help! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
PivotTables | Excel Discussion (Misc queries) | |||
PivotTables | Excel Discussion (Misc queries) | |||
Extracting from Pivottables | Excel Discussion (Misc queries) | |||
New to Pivottables- need help | Charts and Charting in Excel | |||
Drill Down in PivotTables | Excel Discussion (Misc queries) |