Results 1 to 2 of 2

Thread: [Excel 2003] - Update PivotCache problems

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2008
    Posts
    44

    [Excel 2003] - Update PivotCache problems

    Hi All,

    I've got a macro I wrote in Excel 2007 which updates a pivot table with a new range of information. It works nicely in 2007 using the following code (bearing in mind that I defined "Pivotrange" earlier in the macro).

    Code:
    ActiveWorkbook.Worksheets("Data Sheet").PivotTables("PivotTable1").ChangePivotCache ActiveWorkbook. _
            PivotCaches.Create(SourceType:=xlDatabase, SourceData:=pivotrange, Version:=xlPivotTableVersion10)
    However, when my colleague tries to use it in Excel 2003 it return the error "Object doesn't support this property or method".

    Is there an equivalent piece of code I could use that would update the existing pivottable to use the range "pivotrange" but which would be compatible with 2007 and 2003?

    Many thanks.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [Excel 2003] - Update PivotCache problems

    I have to ask the obvious question....does the range "pivotrange" excel in the 2003 spreadsheet?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width