It seems that a scheduled macro—which would run just fine—would open another workbook in order to update it. He could not get the macro to open the workbook without it displaying a notice asking if the automatic links in the workbook should be opened. The question halted the macro while it waited for Graham's response, and he was looking for a way for the links to be updated automatically, without the bothersome notice. There are several ways this problem can be approached.
First, you can configure Excel so that it doesn't ask the question. This option affects all workbooks opened on the system: Display the Excel Options dialog box. In Excel click the Office button and then click Excel Options. In Excel and Excel display the File tab of the ribbon and then click Options. Click Advanced at the left of the dialog box and scroll down to the General section. The advanced options in the Excel Options dialog box. With the check box cleared, Excel no longer asks and all links are updated automatically.
If you want an approach that doesn't affect all workbooks, you can follow these steps: Open the workbook that contains the links. Display the Data tab of the ribbon. Click the Edit Links tool in the Connections group. Excel displays the Edit Links dialog box. The Edit Links dialog box. Click the Startup Prompt button. Excel displays the Startup Prompt dialog box. The Startup Prompt dialog box.. Click on OK to dismiss the Startup Prompt dialog box.
Click on Close to dismiss the Edit Links dialog box. Now the workbook can be opened without Excel asking about updates. This, of course, affects just this workbook, and it affects it regardless of how it is opened. In other words, it will affect how the workbook is opened by the macro as well as when it is opened by a user.
Perhaps the best approach is to simply make a small change in your macro—the one that opens the workbook containing links. There is a good chance that the code to open the workbook looks something like this: If you include the property with the setting shown, then Excel will update both remote and external references in the workbook as it is opened. ExcelTips is your source for cost-effective Microsoft Excel training.
This tip applies to Microsoft Excel , , and You can find a version of this tip for the older menu interface of Excel here: Author Bio Allen Wyatt With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. Learn more about Allen The key is identifying the differences between the Discover More Creating and Using Standardized Tables If you have a common table layout that you want to use again and again, you'd benefit by having an easy way to save that Open a workbook that someone else is working on, and you won't be able to save your changes back into the same file.
Discover how to extend the capabilities of Office Word, Excel, PowerPoint, Outlook, and Access with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Discover More Converting Strings to Numbers When working with data in a macro, there are two broad categories you can manipulate: If you work with macros, you know that creating macros from Get tips like this every week in ExcelTips, a free productivity newsletter.
Enter your address and click "Subscribe.