Jagwarman
asked on
ThisWorkbook.RefreshAll
Does anybody know why ThisWorkbook.RefreshAll is not only refreshing all of the pivots in my workbook but also removing formula that I have in the underlying data.
i.e. formula in cell is =TODAY() which is displayed as 03/01/2013
after running macro with ThisWorkbook.RefreshAll cell changes to 27/12/2012
formula in next cell is =H2 which displays 11
after running macro with ThisWorkbook.RefreshAll cell changes to 4
thank you
i.e. formula in cell is =TODAY() which is displayed as 03/01/2013
after running macro with ThisWorkbook.RefreshAll cell changes to 27/12/2012
formula in next cell is =H2 which displays 11
after running macro with ThisWorkbook.RefreshAll cell changes to 4
thank you
ASKER
I have no links to other workbooks that I can see and no other macros in my spreadsheet.
This is the most bizzare thing I have ever seen
This is the most bizzare thing I have ever seen
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Not sure if it was your answer or not. Closed Excel, re-booted PC input your sub, ran without error.
Thanks
Thanks
That method refreshes all external data ranges and PivotTable reports in the specified workbook.
Check if the values are not changing from another macro.
You just want to refresh the pivot tables?