LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default ALL;TOTAL reference help

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Circular Reference-tax value on total expense YY san.[_2_] Excel Worksheet Functions 2 August 19th 08 07:25 PM
How to reference the current total, when it could be Cell H9 or H2 Gina[_2_] Excel Discussion (Misc queries) 3 August 7th 08 09:59 PM
Total different items from one column with reference to another? Michael Excel Discussion (Misc queries) 5 January 24th 08 04:27 PM
adding on to an existing total & avoiding a circular reference blo bukti Excel Discussion (Misc queries) 1 April 22nd 07 10:26 AM
Can excel total up the same cell reference across several workshee anamcara Excel Worksheet Functions 3 December 15th 05 07:45 AM


All times are GMT +1. The time now is 02:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"