I have a worksheets with two PivotTables on each. I use the following sub to refresh them.
The tables in the first sheet are labelled 1 and 2 and they both refresh as expected.Please Login or Register to view this content.
The tables in the second sheet are labelled 1 and 4. Excel labelled these for me, probably using 4 because I had several attempts at arranging this table.
The Pivottable 1 refreshes pivottable 4 does not but gives an error message "Unable to get PivotTable of the worksheet class" which I take to mean that it can't find PivotTable4
Why should this be so, and what should I do to solve the problem?
John
Bookmarks