Workbook link problems after copying tabs to a new workbook?

AID: 9730
  • Status: Published

2230 points

  • Bydlmille
  • TypeTips/Tricks
  • Posted on2012-02-22 at 02:06:08
Workbook link problems after copying tabs to a new workbook?
David Miller (dlmille)

Intro

Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original source workbook?  How did you resolve the issue?  Several things come to mind:

1.  You could edit your workbook’s links (figure 1) and change the source to the new workbook,
2.  You could do a FIND/REPLACE of the source workbook reference and clear that reference (figure 2)
3.  Independent of the option you leveraged, above, you also need to reference all your range names in the new workbook to ensure any cross-linkages to the source workbook were resolved (figure 3).
4.  And there were other potential issues you might have needed to address:  Table or PivotTable references, charts, etc.  The list could go on, depending on the complexity of your workbook.

Fig1-2-3-Resolving-Link-Issues.png
  • 648 KB
  • Figure 1,2,3 - Resolving link issues after copying tabs to another workbook
Figure 1,2,3 - Resolving link issues after copying tabs to another workbook

But why did the linkage problem happen in the first place?  Unless you intentionally want that linkage to exist (pulling apart large workbooks with different functions is a common approach to offloading processing and making things more manageable/efficient), there are steps you could take to ensure the linkage problem does not happen in the first place.
 
Early this year, I helped out on 3 related solutions that gave me the idea that perhaps this problem is not so uncommon:

HOW TO MOVE OR COPY WORKSHEET TABS TO A NEW WORKBOOK AND AVOID LINKAGE ISSUES

If you want to create a new workbook from existing sheet tabs, and you want that new workbook to be “whole” in and of itself, without linkages to the source workbook, please consider the following:

  • If you MOVE sheets over, and those sheets don't interlink with any other sheets in the source workbook, even if they interlink with each other (are cross-linked), they can be moved one tab at a time or all at once.

  • However, if you COPY sheets to a new workbook and those sheets don't interlink with any other sheets in the source workbook, but they DO interlink with each other - and you copy them one at a time, the resulting worksheet copies in the new workbook will have linkages back to the source.  But, and here’s the big tip:  if you copy them (the sheet tabs) all at once, the resulting worksheet links will stay with the destination workbook, just as with the move operation.


It doesn't really matter whether you move OR copy worksheets to a new workbook, the links to the new workbook will be maintained in the new, destination workbook, IF all related, cross-linked tabs are either copied at the same time or are moved (either simultaneously or individually).  This applies to manual Excel manipulation, or to VBA coding – and it includes the added benefit of properly linked range names, as well.

RULE OF THUMB

While there’s a nuance between moving or copying interlinked worksheets to a new workbook (or even an existing, separate workbook), the rule of thumb should be to try to move or copy all the tabs at the same time.  We don’t need to remember 1) to MOVE tabs individually or together, 2) but to COPY tabs together to avoid problems, if we maintain a habit of moving or copying tabs in one operation, simultaneously.

You could just MOVE the relevant tabs over, check the new/existing destination workbook to ensure there are no links back to the source, save that file and close the original without saving.  That’s quite a few steps for me, especially if I’ve not had my coffee in the morning!

Or, click on the first tab to copy, and then hold the CTRL key down while selecting each of the other tabs that you want to copy at the same time (figure 4).  Don’t worry, Excel is fairly forgiving, if you select a tab you DIDN’T want, just click it again to de-select it.  As you select tabs, you should note that the tab coloration changes so you can see all the tabs that have been selected.  Then, when you’re ready, just right click your mouse on any of the selected tabs and perform your copy operation.
Figure4---Select-ALL-tabs-before.png
  • 322 KB
  • Figure 4-Select multiple tabs, THEN move/copy the worksheet tabs
Figure 4-Select multiple tabs, THEN move/copy the worksheet tabs
 
BACKGROUND

The reason the MOVE command works manually, even when the operation is done one tab at a time, is the fact that there is absolutely no conflict on where the link is because Excel has only the one reference point – it follows the sheet that is being moved.

However, when the COPY operation is performed one sheet at a time, TWO reference points (original and a copy) could have potentially existed for formulas that are referencing the sheet being copied, and Excel resolves that conflict by always pointing the copied sheet’s links back to the source workbook.  Again, selecting ALL relevant tabs, and THEN doing the COPY operation will create no conflict that Excel needs to resolve, resulting in a new (or separate existing) workbook without links back to the source.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
If you liked this article and want to see more from this author,  please click here.

If you found this article helpful, please click the Yes button near the:

      Was this article helpful?

label that is just below and to the right of this text.   Thanks!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    Asked On
    2012-02-22 at 02:06:08ID9730
    Tags

    excel

    ,

    move

    ,

    copy

    ,

    tab

    ,

    sheet

    ,

    worksheet

    ,

    link

    Topic

    Microsoft Excel Spreadsheet Software

    Views
    906

    Comments

    Add your Comment

    Please Sign up or Log in to comment on this article.

    Join Experts Exchange Today

    Gain Access to all our Tech Resources

    Get personalized answers

    Ask unlimited questions

    Access Proven Solutions

    Search 3.2 million solutions

    Read In-Depth How-To Guides

    1000+ articles, demos, & tips

    Watch Step by Step Tutorials

    Learn direct from top tech pros

    And Much More!

    Your complete tech resource

    See Plans and Pricing

    30-day free trial. Register in 60 seconds.

    Loading Advertisement...

    Top MS Excel Experts

    1. dlmille

      1,351,499

      Genius

      10,680 points yesterday

      Profile
      Rank: Genius
    2. ssaqibh

      542,555

      Sage

      0 points yesterday

      Profile
      Rank: Genius
    3. rorya

      381,757

      Wizard

      4,225 points yesterday

      Profile
      Rank: Savant
    4. imnorie

      334,112

      Wizard

      0 points yesterday

      Profile
      Rank: Genius
    5. teylyn

      282,850

      Guru

      20 points yesterday

      Profile
      Rank: Genius
    6. barryhoudini

      280,460

      Guru

      0 points yesterday

      Profile
      Rank: Genius
    7. redmondb

      235,511

      Guru

      2,000 points yesterday

      Profile
      Rank: Sage
    8. matthewspatrick

      230,947

      Guru

      2,010 points yesterday

      Profile
      Rank: Savant
    9. byundt

      197,840

      Guru

      820 points yesterday

      Profile
      Rank: Savant
    10. zorvek

      144,626

      Master

      0 points yesterday

      Profile
      Rank: Savant
    11. StephenJR

      136,537

      Master

      0 points yesterday

      Profile
      Rank: Genius
    12. nutsch

      117,005

      Master

      0 points yesterday

      Profile
      Rank: Genius
    13. gowflow

      110,036

      Master

      0 points yesterday

      Profile
      Rank: Sage
    14. MartinLiss

      107,333

      Master

      0 points yesterday

      Profile
      Rank: Wizard
    15. GlennLRay

      95,652

      Master

      0 points yesterday

      Profile
      Rank: Guru
    16. robhenson

      90,250

      Master

      0 points yesterday

      Profile
      Rank: Sage
    17. ScriptAddict

      88,470

      Master

      0 points yesterday

      Profile
      Rank: Guru
    18. kgerb

      85,022

      Master

      0 points yesterday

      Profile
      Rank: Wizard
    19. aikimark

      84,456

      Master

      3,310 points yesterday

      Profile
      Rank: Genius
    20. andrewssd3

      80,242

      Master

      0 points yesterday

      Profile
      Rank: Wizard
    21. Wiesje

      69,918

      Master

      0 points yesterday

      Profile
      Rank: Master
    22. Shanan212

      66,418

      Master

      0 points yesterday

      Profile
      Rank: Master
    23. krishnakrkc

      59,548

      Master

      0 points yesterday

      Profile
      Rank: Wizard
    24. Michael74

      54,744

      Master

      0 points yesterday

      Profile
      Rank: Wizard
    25. regmigrant

      51,070

      Master

      0 points yesterday

      Profile
      Rank: Guru

    Hall Of Fame