Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've for a TOC for the sheet and can use "Paste List" to get a list of
named ranges, but can someone point me towards the code for generating a list of the pivot tables in a file? I'm needing to go thru the file clean up the naming conventions and then update the subroutines to use the updated names. Something comparable to ActiveWorkbook.Sheets.Count, I guess? Thanks, Neva |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub ListPivotTables()
Dim PT As PivotTable Dim Sh As Worksheet Dim lSh As Worksheet 'Loop Sheet Set Sh = Worksheets.Add Sh.Range("A1") = "Pivot Table Name" For Each lSh In ActiveWorkbook.Worksheets For Each PT In lSh.PivotTables Sh.Range("A" & Sh.Rows.Count).End(xlUp).Offset(1) = PT.Name Next Next End Sub -- Charles Chickering "A good example is twice the value of good advice." "nj" wrote: I've for a TOC for the sheet and can use "Paste List" to get a list of named ranges, but can someone point me towards the code for generating a list of the pivot tables in a file? I'm needing to go thru the file clean up the naming conventions and then update the subroutines to use the updated names. Something comparable to ActiveWorkbook.Sheets.Count, I guess? Thanks, Neva |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Perfect - thanks!
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Building pivot tables in Excel 2007 based on existing pivot tables? | Excel Discussion (Misc queries) | |||
How do I reduce an Excel with Pivot Tables file size? | Excel Discussion (Misc queries) | |||
Large Excel file size, no pivot tables | Excel Discussion (Misc queries) | |||
How to generate a file copy of the Excel Find results list | Excel Programming | |||
Pivot tables, Validation Lists exist in an excel file | Excel Programming |