+ Reply to Thread
Results 1 to 3 of 3

PivotCaches Add Run-Time Error 13

  1. #1
    Forum Contributor
    Join Date
    01-07-2004
    Posts
    314

    PivotCaches Add Run-Time Error 13

    Hi all,

    Using Excel 2010

    Trying to add a PivotCache using a range in the workbook as the datasource
    I receive
    Run-time error '13':
    Type mismatch
    Here
    Please Login or Register  to view this content.
    But it seems to kind of create the pivot table anyway?
    How can I defeat the error?

    thx
    w
    Please Login or Register  to view this content.
    Kind regards,
    w

    http://dataprose.org

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

    Re: PivotCaches Add Run-Time Error 13

    try this revision

    Please Login or Register  to view this content.
    You are setting object pc to the return pivot table object and not the pivot cache object that it is.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    01-07-2004
    Posts
    314

    Re: PivotCaches Add Run-Time Error 13

    Thanks Andy,

    Works great!

+ 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. PivotCaches.add Error 5 - 2003 to 2010 Macros
    By rupes0610 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2012, 09:35 AM
  2. Clearing pivotcaches and other memory
    By theradpotato in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2010, 11:24 AM
  3. 1004 error with ActiveWorkbook.PivotCaches.Add
    By Jim Snyder in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-25-2009, 01:15 PM
  4. [SOLVED] Pivotcaches add method
    By TomD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2006, 05:10 AM
  5. PivotCaches
    By didi in forum Excel General
    Replies: 1
    Last Post: 02-03-2006, 12:35 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