Excel Connections (Worksheet Links)

AndyWh

New Member
Joined
Sep 28, 2011
Messages
1
Hi,

We're moving our Excel files to a new server in a new directory structure. Unfortunately, all of our Excel files created by the accounting department use links to worksheets in other files which are all over the place, i.e. we're moving from \\oldserver\share\finance\ to \\newserver\share\finance\accounts\

To give a picture of the situation, there are over 11,000 Excel files, a lot of which contain 3 to 30 links to other files. The vast majority of these have so many dependencies that if one contains broken links, hundreds of others will be missing data, so they all need updating at the same time.

I've started cobbling together a macro that will trawl through each one and update the links. I've started to build this using help from the following two forum threads ...

Recursive directory file search (that works with Excel 2007/2010):
http://www.mrexcel.com/forum/showthread.php?p=1228168#1253882

Mass changing of Excel links (hyperlinks, not connections):
http://www.dbforums.com/microsoft-excel/1074340-mass-changing-excel-links.html

I'm about 20% of the way to solving the problem via a macro, however I'm wondering if there's a better solution going forward, rather than just updating the links with the new folder paths .. ?

Is there a way of getting Excel to link to other Excel files/worksheets via a connection file that contains file/folder paths? i.e. Change the folder path in a single location, then all Excel files will use this to point to the correct path? This seems to make much more sense than individually entering the file path in every single Excel file, which later will need to be updated again next directory or server change.

Any help on this is much appreciated !

Cheers

Andy
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,224,564
Messages
6,179,543
Members
452,924
Latest member
JackiG

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top