+ Reply to Thread
Results 1 to 4 of 4

GetPivotData()

  1. #1
    Registered User
    Join Date
    03-15-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    2

    GetPivotData()

    I need a code so I can easily extract data from a pivot table.
    For some reason, however, I keed getting an error. In its simplest form the code is:

    Please Login or Register  to view this content.
    I get the error "Run-time error '1004': Application-defined or object-defined error".

    Any suggestions for what I do wrong? I have used a similar setting in other workbooks without problems.
    I'm very thankful for any help.
    Thanks, Seb

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,961

    Re: GetPivotData()

    "Sales" needs to be the exact name of a field added to the Values of the Pivot Table
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    03-15-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    2

    Re: GetPivotData()

    Thanks for replying. Any other suggestions if "Sales" is specified exactly as in the pivot?

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,961

    Re: GetPivotData()

    Do you have multiple pivot tables in your workbook? Then maybe the index of the pivot table is incorrect for the table that contains that value or the table is on a different sheet or...

    And make sure that the Sales is not a row or column field.

+ 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] GETPIVOTDATA – How to force getpivotdata to accept missing data
    By scottc_00 in forum Excel Formulas & Functions
    Replies: 39
    Last Post: 02-11-2015, 03:23 PM
  2. Using GETPIVOTDATA
    By JakeMann in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2012, 11:43 AM
  3. Getpivotdata
    By cmb80 in forum Excel General
    Replies: 1
    Last Post: 11-12-2010, 11:25 AM
  4. GetPivotData
    By abbymagga in forum Excel General
    Replies: 6
    Last Post: 08-04-2010, 10:24 AM
  5. GETPIVOTDATA help
    By rbkgctc in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-07-2008, 11:54 AM
  6. Getpivotdata
    By no dice in forum Excel General
    Replies: 2
    Last Post: 01-22-2008, 01:42 AM
  7. getpivotdata
    By br549 in forum Excel General
    Replies: 1
    Last Post: 08-08-2006, 03:25 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