Consulting

Results 1 to 3 of 3

Thread: Solved: Pivot Table

  1. #1
    VBAX Expert
    Joined
    Aug 2004
    Posts
    810
    Location

    Solved: Pivot Table

    I was wondering.... How do I get the number of Pivot Fields that are being used in a pivot table (I don't mean the number of fields that are available to be used). For example if the my pivot table have 10 fields that is available for me to use, but I only used 3 of them, I need to know how to get "3".

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,728
    Location
    [VBA]
    activesheet.pivottables(1).pivotfields.count

    activesheet.pivottables(1).rowfields.count

    activesheet.pivottables(1).columnfields.count

    activesheet.pivottables(1).pagefields.count

    [/VBA]

    Paul

  3. #3
    VBAX Expert
    Joined
    Aug 2004
    Posts
    810
    Location
    Thanks Paul.

Posting Permissions

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