Joe M
asked on
Excel Macro Pivot Table
I have a spreadsheet with two tabs.
Tab 1 is a Pivot table of Tab 2
Tab 2 is created via a connection through ODBC
I have a macro that request to refresh all but the summary pivot table is being refreshed first so it does not reflect the details which have not yet been refreshed. The details then are refreshed and accurate but the pivot table is not.
By refreshing again, the pivot table does reflect the details that are now accurate.
Does anyone know how to address this?
Tab 1 is a Pivot table of Tab 2
Tab 2 is created via a connection through ODBC
I have a macro that request to refresh all but the summary pivot table is being refreshed first so it does not reflect the details which have not yet been refreshed. The details then are refreshed and accurate but the pivot table is not.
By refreshing again, the pivot table does reflect the details that are now accurate.
Does anyone know how to address this?
If I understand what you said, it sounds like the macro is "refreshing all" pivot tables before the ODBC is updated. The order of execution should be reversed. I believe the "refresh all" command is probably only related to all the pivot tables and not the raw data from the ODBC. That would be my guess.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you everyone for your help