|
||||||||||||||||||||||||||||||||||||||
|
Excel 2007: Manage Workbook Links
By David H. Ringstrom, CPA
Excel users either love workbook links or hate them. Indeed, it can be frustrating when the, “This workbook contains links…” prompt appears unexpectedly. In this article, I'll discuss how to create, locate, and eliminate workbook links. I’ll focus on Excel 2007 first, and then finish with some quick tips for users of earlier versions of Excel. Link Lowdown Most Excel formulas involve references to other cells within the same worksheet or perhaps another worksheet within that same workbook. A workbook link follows the same conventions as these Excel formulas, but instead refers to a cell or cells in a separate workbook. Assuming that your workbook links update automatically, changes to the linked cells in the second workbook will flow through when you open or refresh the first workbook. Such a formula might take one of these forms:
These formulas break down into these parts:
=SUM('C:\Folder\[Workbook2.xls]Sheet1'!A1:A10) Links provide a helpful convenience, but they can also be troublesome:
Link defense: I typically avoid using links and keep all related data within a single workbook. However, if your situation requires that you use links, be sure to keep the above caveats in mind. If you want to build a linked formula, you'll often find the process is easier when you can see both workbooks onscreen simultaneously. This technique usually works best when you only have two workbooks open at once, but you can also minimize unneeded open workbooks before you carry out these steps:
To Update, Or Not To Update … As shown in Figure 2, a security warning appears when you open a workbook that contains links. As shown in Figure 3, you can click the Options button and make a choice:
The first option prevents the links from updating, while the second option enables the links, which means your formulas will update automatically. This prompt allows you to manage links on a global level for your workbook, but you can also manage links on an individual basis:
Visual cue: A disabled
Edit Links command indicates that your workbook does not contain any links.
As shown in Figure 4, the other buttons in the Edit Links dialog box allow other ways for you to manage links within your workbook:
Caveat: Regardless of your choice within the Start-up prompt, broken links may still cause the security warning to appear.
Trust Center Settings A new feature in Excel 2007 is the Trust Center, which you can use to manage various security settings, including workbook links: 1. Click the Office button, and then choose Excel Options. 2. Choose Trust Center, and then Trust Center Settings. 3. Click External Content, and then make a choice within the Workbook Links section: Enable
automatic update for all Workbook Links (not recommended) – Select this
choice if you always want workbook links to refresh automatically without
displaying the security prompt shown in Figure 1. Prompt
user on automatic update for Workbook links – This default setting causes
the security warning shown in Figure 1 to appear whenever you open a workbook
that contains links. Disable
automatic update of Workbook Links – This setting disables all linked
formulas, as well as the security warning. You can manually update links at any
time by following the instructions above regarding the Links button on the
Connections section of the Data ribbon. Eliminating Links Unfortunately, the Edit Links window shown in Figure 4 confirms that your file contains links, but does not tell you which cells or range names contain links. In many cases, the Break Links button will eliminate the links, but the downside is you won't know what cells are being affected. You may then need to do some detective work. Since every workbook link formula contains a square bracket, try pressing Ctrl-F and search for the [ character. You'll need to do this on each worksheet, unless you group the worksheets first. You can then edit each link formula individually, or press Ctrl-H to replace the file path and workbook name with either a blank — this would eliminate the link and have the formula refer to the sheet name in question within the current workbook — or another path. Another place to look for hidden links is within the Name Manager. To do so, choose Name Manager from the Defined Names section of the Formula ribbon. As shown in Figure 4, you can click the Refers To column to sort the range names so that any names referencing other workbooks sort to the top. You can then delete or amend each defined name as needed. As with worksheet formulas, linked range names will contain a workbook path and workbook name contained within square brackets. Other links: In addition to links within formulas and range names, links can reside within database queries. In addition, some users rely on Object Linking and Embedding (OLE) or Dynamic Data Exchange (DDE) links to other documents or resources. Stubborn links: If your workbook contains links that you can't locate or remove through any other fashion, download and install the Delete Links Wizard. Once you download and expand the compressed file, double-click on the resulting DELLINKS.XLA file. The wizard will appear on the Add-Ins tab of the ribbon, as shown in Figure 5. You can then use the wizard to search for and eradicate links within your workbooks.
Programming resource: Microsoft Knowledgebase article 126093 contains macros that Visual Basic for Applications developers can use to delete links. Tips for Excel 2003 and Earlier Many of the techniques I describe above work in Excel 2003 and earlier:
The views and opinions expressed in this column are those of the author and do not necessarily reflect the opinions of Microsoft. |
|||||||||||||||||||||||||||||||||||||
Printer-friendly version |
||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||