L
Legacy 327851
Guest
Hi there,
I'm using Excel 2013 and have a workbook with 5 sheets of data, all from different external data sources.
I've then created a new sheet which is basically my report. It has a drop-down for a user to select their ID, and this then updates some vlookups, but the reason for the macro is that I have 3 pivot tables in the report. To make it easier for users who would be easily confused by having to refresh the tables I've created a macro that refreshes them all when you hit the big button that says 'run report'.
This is my first experience with macros so I have simply hit Record and then refreshed each of my pivot tables in turn, and then stopped recording. I can copy out the code if needed.
Now - the problem. The macro works fine for me, and for about 90% of the users. I have a couple of people who get an error though, and I can't figure out if there's something wrong with the macro, or elsewhere. I suspect elsewhere as surely it would affect everyone otherwise?
The error is Run-time error '440': Method 'Refresh' of object 'PivotCache' failed.
Can anyone help?
I'm using Excel 2013 and have a workbook with 5 sheets of data, all from different external data sources.
I've then created a new sheet which is basically my report. It has a drop-down for a user to select their ID, and this then updates some vlookups, but the reason for the macro is that I have 3 pivot tables in the report. To make it easier for users who would be easily confused by having to refresh the tables I've created a macro that refreshes them all when you hit the big button that says 'run report'.
This is my first experience with macros so I have simply hit Record and then refreshed each of my pivot tables in turn, and then stopped recording. I can copy out the code if needed.
Now - the problem. The macro works fine for me, and for about 90% of the users. I have a couple of people who get an error though, and I can't figure out if there's something wrong with the macro, or elsewhere. I suspect elsewhere as surely it would affect everyone otherwise?
The error is Run-time error '440': Method 'Refresh' of object 'PivotCache' failed.
Can anyone help?