+ Reply to Thread
Results 1 to 2 of 2

VBA with PivotTable Count of Accounts - Want to show Sum of Accounts

  1. #1
    Registered User
    Join Date
    02-14-2008
    Posts
    30

    VBA with PivotTable Count of Accounts - Want to show Sum of Accounts

    Hello all,

    I have a user form that has a button to run a PivotTable. All is working well except the Pivot is not showing the Sum of Accounts, instead it is showing the Count of Accounts.
    (Was originally created in Office 2003, but have since upgraded to 2007, so not sure if this is a result.)

    Could someone please direct me on how to correct the code below to show the Sum of Accounts for the PivotTable?

    Please Login or Register  to view this content.
    I assume I would add
    "Sum of Accounts" in somewhere, just don't know where.

    Thanks for any assistance,

    Mike

  2. #2
    Forum Contributor
    Join Date
    06-14-2008
    Posts
    153
    Hi,

    Add the following line of code to your macro:
    Please Login or Register  to view this content.
    Make sure the field name "Count of Accounts" is spelled exactly as it is in the pivot table.

    I hope this will fix your problem.

    Regards.
    Welcome to: http://www.exceldigest.com/myblog/
    "Excel help for the rest of us"

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1