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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top