Amir, I'm sorry you're having issues. Is the workbook in question sensitive? If not, can you click furmangg and contact me. We can email back and forth and share it.
If it's sensitive, I'm open to any suggestions you have on how to help me reproduce this. I haven't been able to thus far. Can you describe generally how large the workbook is (# tables, PivotTables, etc)?
Enable Auto Refresh was broken after upgrading OLAP PivotTable Extensions to run in Excel 2016 so I definitely had to make some tweaks. The main code changes I made were:
1) Double check that the data model is loaded before making a change that will force a refresh of the PivotTables (as this caused an error in Excel 2016 if the data model hadn't been loaded)
2) The way we trigger refresh of all the tables without actually causing Power Pivot to reload from all of it's (SQL) sources is to add a new table with a connection to a text file and then delete the table. In Excel 2016, we used the newest version ACE driver for loading the text file.
3) If the Power Pivot window was open, we needed our code to pause for a few seconds to let Power Pivot complete it's work or else we got an unhandled exception inside the Power Pivot window.
Sorry for the delay in replying. If you have any further info, let me know.
If it's sensitive, I'm open to any suggestions you have on how to help me reproduce this. I haven't been able to thus far. Can you describe generally how large the workbook is (# tables, PivotTables, etc)?
Enable Auto Refresh was broken after upgrading OLAP PivotTable Extensions to run in Excel 2016 so I definitely had to make some tweaks. The main code changes I made were:
1) Double check that the data model is loaded before making a change that will force a refresh of the PivotTables (as this caused an error in Excel 2016 if the data model hadn't been loaded)
2) The way we trigger refresh of all the tables without actually causing Power Pivot to reload from all of it's (SQL) sources is to add a new table with a connection to a text file and then delete the table. In Excel 2016, we used the newest version ACE driver for loading the text file.
3) If the Power Pivot window was open, we needed our code to pause for a few seconds to let Power Pivot complete it's work or else we got an unhandled exception inside the Power Pivot window.
Sorry for the delay in replying. If you have any further info, let me know.