Pivotitem count

  • Thread starter Thread starter Jesse
  • Start date Start date
J

Jesse

Try as I might I can't get the count of items in a pivot field.

I tried

Activesheet.PivotTables("BDStore").PivotField("Store").pivotitems.count

But that returns object doesn't support this property or method.

The pivotitems object does have a count property but I'm suspecting I'm not
using it correctly.
 
try adding an "s" to PivotField --

ActiveSheet.PivotTables("BDStore").PivotFields("Store").PivotItems.Count
 
I got it working, that with another error I had fixed it.

Pretty much a user problem <grin>

Jesse
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top