LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Replace all Pivot table data fields using VBA

I am trying to remove all the data fields in a pivot table and then
immediately replace them with some new data fields. Dead easy through the
wizard or on screen, how do you do it through VBA?

I am trying to build a basic MI interface and I need to be able to keep all
existing options (Page fields, row and column fields) but replace which type
of data is shown. This will allow a user to flick between the %age profit on
a transaction and the absolute £ value of profit on the transaction.

I have not been able to find any function which does this, the closest seems
to be the AddFields method which lets you replace all fields EXCEPT the
datafields.

Hopefully the above makes it sound like I know what I'm doing in VBA,
unfortunately not. I stumble about in the help trying to find the right
function to do what I need to so please be gentle with me if I don't get it
first time.

Thanks

Stuart
 
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
subtract two data fields in pivot table Alok Charts and Charting in Excel 0 October 31st 09 08:50 PM
VBA Pivot Table help with data fields James Excel Discussion (Misc queries) 3 August 13th 09 05:15 PM
How do I replace/select new fields in pivot table using a macro? snowdog Excel Discussion (Misc queries) 1 August 4th 09 03:58 AM
Data Fields in Pivot Table MichaelR Excel Discussion (Misc queries) 0 July 22nd 08 06:36 PM
Manipulating Pivot Table Data Fields Jay Charts and Charting in Excel 1 November 1st 05 03:48 AM


All times are GMT +1. The time now is 08:54 PM.

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"