Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Replacing Links with Values.

Replacing Links with Values

by Allen Wyatt
(last updated July 26, 2017)

5

John has a large number of workbooks that have links in them and they are getting very large. He wonders if there is any way for Excel to convert the links to the data grabbed from those links so he can archive the old workbooks.

One thing to try is to open the workbooks that contain the links and then use Excel's tools to break the links. Make sure you keep a backup of your workbook (in case you mess things up) and follow these steps:

  1. Display the Data tab of the ribbon.
  2. Click the Edit Links tool, in the Connections group. Excel displays the Edit Links dialog box. (See Figure 1.)
  3. Figure 1. The Edit Links dialog box.

  4. Select the links in the dialog box.
  5. Click Break Links and acknowledge that you really want to break the selected links.
  6. Click OK.

The result is that all the links are done away with, but the values last retrieved through the links remain in the workbook.

Another approach is to use Paste Special to "overwrite" your links. (This works well if you have a limited number of links in a worksheet.) Follow these steps:

  1. Select the cells that contain links.
  2. Press Ctrl+C.
  3. Display the Paste Special dialog box. (On the Home tab of the ribbon click the down-arrow under the Paste tool and choose Paste Special.) (See Figure 2.)
  4. Figure 2. The Paste Special dialog box.

  5. Click the Values radio button.
  6. Click OK.

If you have quite a few links in your workbook, then you will want to use a macro to do the link breaking. The following is an example of a simple macro to do the breaking:

Sub BreakLinks()
 Dim aLinksArray As Variant

 aLinksArray = ActiveWorkbook.LinkSources(Type:=xlLinkTypeExcelLinks)
 Do Until IsEmpty(aLinksArray)
 ActiveWorkbook.BreakLink Name:=aLinksArray(1), _
  Type:=xlLinkTypeExcelLinks
 aLinksArray = _
  ActiveWorkbook.LinkSources(Type:=xlLinkTypeExcelLinks)
 Loop
End Sub

It is important to remember, though, that links can be tricky. Links to other workbooks can be in formulas, names, charts, text boxes, and other objects, both visible and hidden, and in different combinations within formulas and those objects. Getting all the links and breaking them depends on the complexity of your workbook. If you have a complex workbook, then you may benefit by using the FindLink add-in created by Excel MVP Bill Manville. You can find it here:

http://www.manville.org.uk/software/findlink.htm

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (7566) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Replacing Links with Values.

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. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

What Changes Did I Make In that Template?

When you make changes that affect a template, Word usually asks you if you want to save those changes when you exit the ...

Discover More

Printing a Draft of a Worksheet

Do you want the absolute fastest print speed possible for a worksheet? Then you need to print a worksheet draft.

Discover More

Adjusting Cell Margins for More White Space

Is the information in your cells too jammed up? Here are some ways you can add some white space around that information so it ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

More ExcelTips (ribbon)

Pulling Access Information into Excel

If you have a lot of data stored in Access databases, you may want to get at that information using Excel. There are a few ...

Discover More

Easily Changing Links

If you have linked information in your worksheets, you may want a way you can easily change the targets to which those links ...

Discover More

Removing Hyperlinks without a Macro, Take Two

Need to get rid of hyperlinks in a worksheet? Here's an easy way to do it without using a macro.

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 8Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 7 - 0?

2017-07-26 04:56:10

Col Delane

I could be wrong, but I believe the first option (Data \ Edit Links \ Break Link) will only convert direct links embedded in sheet formulas in your workbook, but will NOT convert a link which provides the "Refers to" formula of a Defined Name. As a result, any sheet formulas in your workbook that directly reference such Defined Names, or have a dependency on such a Defined Name (one Name can reference another!), will not be converted to the returned value.

Identifying and managing inter-workbook links is one of the most problematic aspects of Excel, and which the MS development team seem disinterested in resolving.


2017-04-18 03:02:40

Jay

Very helpful, thank you


2016-08-10 06:11:07

Mike

Thank you so much for this tip, it really helped a lot to reduce my working time on a spreadsheet!


2014-12-31 16:23:30

KCribb

Thank you!!! Your script worked like a charm for me!!


2014-01-06 11:32:33

Rusty Burke

Thank you for the tip. Fixed me right up. My organization chart contained pages of links that I can't access when I'm mobile. This allowed me to break them and retain the values for the cells.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.