View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bradley Searle[_2_] Bradley Searle[_2_] is offline
external usenet poster
 
Posts: 5
Default Pivot Data fields - removal of all (value) fields

Hi,

I'm trying to write a macro that removes all items in the "data" field of a
pivot table. To remove a particular field, in this case the field called "Sum
of FP01" you could use a macro such as this:

ActiveSheet.PivotTables("Central").PivotFields("Su m of FP01").Orientation = _
xlHidden

However if you do not have that field in the table it creates and error.

How would I say "remove ANY data from the data field?"

Many thanks, Brad