+ Reply to Thread
Results 1 to 1 of 1

Pivot Cache VBA code - Application-defined or Object Defined error

  1. #1
    Forum Contributor
    Join Date
    04-14-2008
    Location
    Fort Collins, Co
    MS-Off Ver
    2016
    Posts
    107

    Question Pivot Cache VBA code - Application-defined or Object Defined error

    Please Login or Register  to view this content.

    This gives me an error: "Application-defined or Object Defined error"

    Debug shows it is failing on this line: pt.CacheIndex = ptO.CacheIndex

    I am using this code from a site. It has worked for me in the past. I have one Pivot Table called "PivotTable3" on a worksheet called "Pivot". I want all the other pivots in my workbook to use the same cache as PivotTable3.

    Help!

    EDIT: I solved this on my own by using different code that would identify the pivot table cache that was being used when selecting a pivot and pressing CTRL+P. I was able to identify which pivots used the wrong cache and just had to delete them, then copy/paste from an existing pivot. Not the perfect solution, but I got the job done. Thanks!
    Last edited by 4am; 03-31-2011 at 09:35 AM. Reason: Semi-solution found
    Is That Your Spreadsheet Or Did Your Database Just Throw Up?


+ 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