Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default ChangingPivot Table programmatically

Turn on the macro recorder as you manually perform the steps, and it
will create the code for you.


Todd Huttenstine wrote:
I have a pivot table and when you right click it and
select Wizard the Pivot Table Wizard Step 3 of 3 dialog
pops up. I then can change what fields the pivot table
displays by clicking on the Layout button. Now lets say I
currently have the field Sum of EID in the data section of
the table. I want to remove this field and add the field
BID into the data section. I then want it to display the
SUM of field BID. To do this manually I simply drag and
drop the feild BID into the data section of the table
wizard and then double click the field and select SUM.
Then I click OK. And then I click finish. If I wanted to
do this programmatically, how would I do this? What is
the code to do this?


--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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: how to programmatically format headers? Dave O Excel Discussion (Misc queries) 3 October 9th 06 03:19 PM
help with create spreadsheet programmatically Divyesh Raithatha Excel Programming 1 October 4th 03 08:02 AM
Programmatically Add Reference` keepitcool Excel Programming 1 September 16th 03 05:30 PM
Programmatically Add Reference` Jean-Paul Viel Excel Programming 0 September 16th 03 02:23 PM
Can i set a reference programmatically? Tom Ogilvy Excel Programming 1 August 19th 03 04:24 PM


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"