In Excel 2010 when I open any workbook I want to have all links to other workbooks automatically updated without prompting. According to Office 2010 Excel Help, I can achieve this for each workbook by clearing the following:File > Options > Advanced > When calculating this workbook > Update links to other documentsUnfortunately this option does not stay cleared!
As far as I can tell, all the other options in this category keep their last settings.
- If I go back to the option while the workbook is still open, it remains cleared.
- If I (re)open it after saving and closing, the option is checked again.
Any ideas?
Create an Auto_Open Macro
depending on what/how your links are you may need a slightly different code. This works for me reading XML into my workbook.Sub Auto_Open ActiveWorkbook.RefreshAll End Sub
Having just had another look i think this maybe what you need.
ActiveWorkbook.UpdateRemoteReferences = True
Go down one step under GENERAL
File > Options > Advanced > When calculating this workbook > Update links to other documents
you'll find -Ask to Update Automatic Links
Contributors to this forum do not get paid. They give their valuable time to help you solve your problem. That's why feel free to CLICK their STARicon to say thank you -even the given idea/solution didn't really solve your queries. The time given to you deserves a small gratitude anyway.
Dare to give a pencil to a child. http://www.blackpencilproject.org/
I understand the idea of this and your later amendment to the code, but I have some questions:
- Where can I put this code so that it will run every time I open any workbook? I do not want to have to include it in each and every workbook, but I cannot identify an Application VBA project with a suitable module.
- Will it definitely prevent the update prompt?
I do not understand how these two settings interact with each other.
The "Ask to Update Automatic Links" setting was initially checked.
My initial experiment with clearing it seems to prevent updating for all workbooks.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks