View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
JohnB JohnB is offline
external usenet poster
 
Posts: 53
Default Pivottables change datatype in vba

But how do change the datatype from default xlCount to xlSum using vba code?
I have trying to slot it into the With End With is that possible?

With .PivotFields("venue")
.Orientation = xlRowField
.Position = 1
End With

TIA
johnb