+ Reply to Thread
Results 1 to 2 of 2

List all pivot tables within a worksheet

  1. #1
    Registered User
    Join Date
    11-11-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    6

    List all pivot tables within a worksheet

    I'm trying to generate a list of pivot tables within a worksheet, along with their cell location. I found this code online, but can't find where it's printing the information...


    Sub list_all_pivottables_on_worksheets_with_more_than_one_pivotable()
    For Each ws In Worksheets
    If ws.PivotTables.Count > 1 Then
    For Each pt In ws.PivotTables
    Debug.Print ws.Name & ":" & pt.Name
    Next pt
    End If
    Next ws
    End Sub


    It'd be ideal for me to have this list, with PT name and location, printed into a clean worksheet.

    Thanks for the help!

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: List all pivot tables within a worksheet

    Good evening robhumbug

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1