ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pivot Table from VBA or VB6 - Field Settings (https://www.excelbanter.com/excel-programming/311247-pivot-table-vba-vb6-field-settings.html)

Darrell Wesley[_2_]

Pivot Table from VBA or VB6 - Field Settings
 
Is there anyway to control the default Field Settings that the Pivot table
uses?

I have a field that I want the field setting to be an Average but Excel
places it on the sheet as either "Sum of" or "Count of" depending on the
data. Is there anyway to set it to do an Average before hand so that errors
will not pop up?

Currently I'm using an "On Error Resume Next" in order to circumnavigate
this problem.


All times are GMT +1. The time now is 12:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com