Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Is there a function similar to "Insert-Name-Paste-Paste List" for pivot
tables, where I can generate a list of all pivot tables and where they are located in the spreadsheet? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
"ldc" wrote:
Is there a function similar to "Insert-Name-Paste-Paste List" for pivot tables, where I can generate a list of all pivot tables and where they are located in the spreadsheet? A google search revealed a sub by Charles Chickering, pasted below: ------------------- 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? ----------- -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This worked great to list the pivot tables. Anything to show location of the
pivot table or the data range the pivot table is using? "Max" wrote: "ldc" wrote: Is there a function similar to "Insert-Name-Paste-Paste List" for pivot tables, where I can generate a list of all pivot tables and where they are located in the spreadsheet? A google search revealed a sub by Charles Chickering, pasted below: ------------------- 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? ----------- -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If nobody else jumps in here, suggest you try a new posting in .programming.
-- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "ldc" wrote in message ... This worked great to list the pivot tables. Anything to show location of the pivot table or the data range the pivot table is using? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Worksheet and Pivot Table | Excel Discussion (Misc queries) | |||
Idenifying and Listing Duplicate Values in a Table? | Excel Discussion (Misc queries) | |||
listing all names in a worksheet | Excel Discussion (Misc queries) | |||
can i use more than one worksheet in a pivot table ? | Excel Discussion (Misc queries) | |||
Need listing of links in a worksheet | Excel Worksheet Functions |