Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In that example, you're selecting the label in the subtotal row for all
the Activity Type items. If Cancel is an Activity Type, you could change the line to: ActiveSheet.PivotTables("PT_ActivityCosts").PivotS elect "'Activity Type'[Cancel;TOTAL]", x1LabelOnly and the label in the Cancel subtotal row would be selected. Change the line to: ActiveSheet.PivotTables("PT_ActivityCosts").PivotS elect "'Activity Type'[Cancel]", x1LabelOnly and the Cancel label cells would be selected. wacNTN wrote: I have just started trying to do some VBA for Pivottables. I have recorded some macros and have a good reference book but for I don't undersand what ALL;TOTAL refers to and are there other parameters I can use there? If so what are they, what are they called, what should I search for? An example line of code follows. ActiveSheet.PivotTables("PT_ActivityCosts").PivotS elect "'Activity Type'[ALL;TOTAL]", x1LabelOnly -- Debra Dalgleish Contextures http://www.contextures.com/tiptech.html |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Circular Reference-tax value on total expense | Excel Worksheet Functions | |||
How to reference the current total, when it could be Cell H9 or H2 | Excel Discussion (Misc queries) | |||
Total different items from one column with reference to another? | Excel Discussion (Misc queries) | |||
adding on to an existing total & avoiding a circular reference blo | Excel Discussion (Misc queries) | |||
Can excel total up the same cell reference across several workshee | Excel Worksheet Functions |