Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
subtract two data fields in pivot table | Charts and Charting in Excel | |||
VBA Pivot Table help with data fields | Excel Discussion (Misc queries) | |||
How do I replace/select new fields in pivot table using a macro? | Excel Discussion (Misc queries) | |||
Data Fields in Pivot Table | Excel Discussion (Misc queries) | |||
Manipulating Pivot Table Data Fields | Charts and Charting in Excel |