Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2007

Tip: Looking for answers? Try searching our database.

Pivot Table - Selecting the GrandTotal Column in VBA xl2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dgrant_jr - 25 Jan 2007 14:51 GMT
Hi All

can anyone help with the vba code for selecting either the GrandTotal Column
or Row in a pivot table.  I seem to be able to select just about anything
else but these.

Signature

dgrant_jr@nospam_hotmail.com

Debra Dalgleish - 25 Jan 2007 15:07 GMT
If you use the macro recorder while you manually select the totals, it
should create some sample code for you. For example:

ActiveSheet.PivotTables(1).PivotSelect _
    "'Row Grand Total'", xlDataAndLabel, True

ActiveSheet.PivotTables(1).PivotSelect _
    "'Column Grand Total'", xlDataAndLabel, True

> can anyone help with the vba code for selecting either the GrandTotal Column
> or Row in a pivot table.  I seem to be able to select just about anything
> else but these.

Signature

Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

dgrant_jr - 25 Jan 2007 15:20 GMT
Hi Debra

Thanks alot, i had tried it previously but it only showed as a selected
range.  

Realised i didnt have the Enable Selection option selected.

Thanks for a such a quick reply.

Dennis

Signature

dgrant_jr@nospam_hotmail.com

> If you use the macro recorder while you manually select the totals, it
> should create some sample code for you. For example:
[quoted text clipped - 8 lines]
> > or Row in a pivot table.  I seem to be able to select just about anything
> > else but these.
Debra Dalgleish - 25 Jan 2007 15:42 GMT
You're welcome, and thanks for describing how you fixed the problem.

> Hi Debra
>
[quoted text clipped - 6 lines]
>
> Dennis

Signature

Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.