The information in this article applies to:
SUMMARYWhen you open a workbook that contains links to another workbook, Microsoft Excel asks you if you want to update links. If the file that the link is referring to no longer exists, or if it has been moved to a different folder, you may want to delete the links to avoid this message. MORE INFORMATION
One of the most common link types is a formula link. A link formula in a
cell can refer to a cell on a closed workbook file. If that file no longer
exists, the formula is no longer valid. To delete such a link, click Find
on the Edit menu, and search for an (!) exclamation point. This will show
each link in a sheet. You can then go to each cell, delete the formula, and
replace it with the value that was in the cell. If many cells contain
links, deleting the links may take some time. To speed up the deletion
process, you may want to use one of the following methods. The macros will
enable you to delete some links and not others.
while a Microsoft Excel 4.0 link may be similar to the following:
Note also that these macros may not work if the source file for a link is located on a network drive. If this is the case, the link will be found but not deleted. If You Are Using Microsoft Excel 97 for WindowsIf you are using Microsoft Excel 97, you can use the Delete Links Wizard to remove links in your workbook.For additional information about the Delete Links Wizard, please see the following article in the Microsoft Knowledge Base: Q188449 : XL97: Delete Links Wizard Available Visual Basic Code Example (Microsoft Excel 5.0 or later)Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:http://www.microsoft.com/support/supportnet/overview/overview.asp Code Example
Microsoft Excel 4.0 ExampleMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:http://www.microsoft.com/support/supportnet/overview/overview.asp Example
NOTE: The fifth line of this macro is a continuation of the fourth line. REFERENCES
"Function Reference," version 4.0, page 258-259
Additional query words: XL97 macro break links
Keywords : kbdta kbdtacode xlloadsave xlvbahowto xlformat xlformula |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |