+ Reply to Thread
Results 1 to 11 of 11

locating pivot tables in workbook

  1. #1
    Registered User
    Join Date
    06-10-2005
    Posts
    12

    locating pivot tables in workbook

    How can I locate pivot tables that exist in my workbook? Sometimes I create a pivot table, but I don't remember in what cell it was created. It is very difficult to locate it during subsequent use. I can't find it in the list of cell names, either.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: locating pivot tables in workbook

    Hi Carlossaltz,

    Are you saying you can't see the pivot table outline when the pivot table isn't currently selected? It's clear as day in my Excel 2003 and 2007.

    Due to the way pivot tables can over-write columns and rows, I tend to always put them onto their own worksheet in A1. Your choice to put it elsewhere though.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: locating pivot tables in workbook

    Maybe the PT has not had any row/column/data or page items set.

    In which case it would not be easy to see other than by some possible cell formatting.

    Once the table area is selected you should see all the blue bordering and text describing the table.

    anyway try this code in the immediate window.
    ALT+F8 (open VBE)
    CTRL+G (immediate window)

    Please Login or Register  to view this content.
    If you have any pivot tables their sheet and cell location will be outputted in the immediate window.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    06-10-2005
    Posts
    12

    Re: locating pivot tables in workbook

    I didn't express my question correctly. In my case, I have more than ten pivot tables in a specific worksheet. It is hard to find the exact location of each one. I have to scroll horizontally and vertically in order to locate the pivot tables I am looking for. I thought Excel would list all pivot tables in a worksheet the way it lists all cell names that have been created.

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: locating pivot tables in workbook

    Nothing automatic that I know of.

    You either need to create something via code, such as a toolbar with pivot tables listed in a dropdown list.

    Or simply add your own named range to a cell(s) by the pivot table.

  6. #6
    Registered User
    Join Date
    05-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: locating pivot tables in workbook

    Thanks, that's really helpful - do you know how you would modify this code to show the source data for each pivot table as well?

  7. #7
    Registered User
    Join Date
    05-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: locating pivot tables in workbook

    it's ok i've figured it out:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    09-20-2013
    Location
    chicago, usa
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: locating pivot tables in workbook

    Very useful, thank you.

  9. #9
    Forum Contributor
    Join Date
    03-08-2011
    Location
    Lubbock, TX, USA
    MS-Off Ver
    MS OFFICE 365 EXCEL, OUTLOOK, WORD, POWERPOINT
    Posts
    194

    Re: locating pivot tables in workbook

    Just wanted to say that I found this question in a google search and it is awesome. The only change is that the editor is now Alt F11 at least for MSO 365

  10. #10
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: locating pivot tables in workbook

    Quote Originally Posted by Mr_Phil View Post
    The only change is that the editor is now Alt F11 at least for MSO 365
    It always was actually. Alt+f8 is for the Macros dialog, so I think it was a typo on Andy's part.
    Rory

  11. #11
    Registered User
    Join Date
    09-25-2018
    Location
    Swindon UK
    MS-Off Ver
    365
    Posts
    1

    Re: locating pivot tables in workbook

    Sorry for resurrecting a very old thread; however the VBA code was so useful! Thank you.
    I have added a small addition to display the name of each pivot table:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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