View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Debra Dalgleish Debra Dalgleish is offline
external usenet poster
 
Posts: 2,979
Default Pivot Table - How do I count number of columns?

There's no built-in option that will count the columns. You could use
programming, e.g.:

Sub ColumnCount
MsgBox ActiveSheet.PivotTables(1).TableRange2.Columns.Cou nt
End Sub


Vicky wrote:
I would like to be able to calculate how many columns are in my pivot table
report. Is there a tool within PivotTables?
Thanks



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html