Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default Pivot Table Query

I am building Pivots on the fly all works well but, how do turn off or remove
the row totals at the moment I have to right click and hide is there a way to
do this when my code builds the pivot.
TIA
Frank

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Pivot Table Query

Turn on the macro recorder while you do it manually. This should give you
the code you need.

--
Regards,
tom Ogilvy

"Frank" wrote in message
...
I am building Pivots on the fly all works well but, how do turn off or

remove
the row totals at the moment I have to right click and hide is there a way

to
do this when my code builds the pivot.
TIA
Frank



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pivot Table Query

Hi Frank,

I'm assuming you have written the code to generate Pivot Table from your raw
data. The following code will hide the row totals.

pt.PivotFields("myRowField").Subtotals = Array(False, False, False, False,
False, False, False, False, False, False, False, False)

Give it a try and see if it works

Joe

"Frank" wrote:

I am building Pivots on the fly all works well but, how do turn off or remove
the row totals at the moment I have to right click and hide is there a way to
do this when my code builds the pivot.
TIA
Frank

Reply
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
Pivot table and MS Query linglc Excel Discussion (Misc queries) 0 September 3rd 08 10:29 AM
a query for pivot table Arvind Excel Discussion (Misc queries) 1 January 25th 08 02:32 PM
Pivot Table Query Lee White Excel Discussion (Misc queries) 1 January 30th 07 01:07 PM
Pivot Table Query sgriff Excel Discussion (Misc queries) 0 July 21st 06 08:08 AM
Pivot Table Query Louise Excel Discussion (Misc queries) 1 June 1st 06 11:52 PM


All times are GMT +1. The time now is 01:58 AM.

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

About Us

"It's about Microsoft Excel"