+ Reply to Thread
Results 1 to 3 of 3

How to make reference to a PivotTable

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    How to make reference to a PivotTable

    I have a worksheet which has several PivotTables.
    I would like to be able to refer to them in code with something like this:-
    Please Login or Register  to view this content.
    This does not work The Pivot table name is not recognised.

    Can anyone point me in the right direction please
    John

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: How to make reference to a PivotTable

    You don't want quotation marks around the n as it is a variable not literal text
    Please Login or Register  to view this content.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Re: How to make reference to a PivotTable

    xlnitwit,
    Thanks for your help. it works fine now.
    I feel just a little bit stupid for not seeing it myself.
    John

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Cell to Reference PivotTable Field Name
    By Epscan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-02-2015, 04:08 PM
  2. Replies: 0
    Last Post: 03-08-2013, 06:34 AM
  3. Replies: 1
    Last Post: 01-07-2013, 12:22 PM
  4. Filter reference in a PivotTable
    By Domino49 in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 12-04-2012, 04:14 AM
  5. PivotTable PivotItems make Visible issue
    By pthoma in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-22-2012, 10:10 AM
  6. [SOLVED] Make pivotchart formatting stick after pivottable refresh.
    By larry garka in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-16-2006, 02:55 PM
  7. make pivottable dropdown work like the filter.
    By Christopher Sequeira in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-25-2005, 05:05 PM

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