Hide Pivottable GrandTotal using VB

J

johnb

Hi Guys
I'm building a pivottable using ADO and VB and I need to hide the Grand
Totals both for colums and Rows. How do I do that in Code

TIA

johnb
 
R

Roger Govier

Hi John

With ActiveSheet.PivotTables("PivotTable1")
.ColumnGrand = False
.RowGrand = False
End With
 
J

johnb

Hi Roger
Thanks for the reply. Its so simple when you know the syntax.

Where do you find syntax?

Kind regards
johnb
 
R

Roger Govier

Hi John

The easiest way I find, is to record a short macro, then examine what gets
created.
 
J

johnb

Hi Roger

Thanks for the feedback

regards
johnb
Roger Govier said:
Hi John

The easiest way I find, is to record a short macro, then examine what gets
created.
 
Top