View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
vicky vicky is offline
external usenet poster
 
Posts: 70
Default Pivot Table - How do I count number of columns?

Debra and tg, Thanks. Would the same apply if you were wanting to count the
number of rows? Do I just replace the word columns with the word rows?
Thanks again.

"Debra Dalgleish" wrote:

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