I'm using Excel 365 and when I try to refresh a set of PivotTable using Refresh All I get the following message:
Unable to refresh data types
I have read that this is to do with whether or not you have an internet connection, which was off, when I turn it on then it works. However, as a alternative I also have this code to refresh the Pivot Tables:
For Each SheetPivotTables In Sheets("Analysis").PivotTables
SheetPivotTables.RefreshTable
Next SheetPivotTables
Which works regardless of internet availability, I also noticed that if you refresh one table at a time it's fine. Is there a way to resolve the error message?