Mass change in links

SandsB

Well-known Member
Joined
Feb 13, 2007
Messages
705
Office Version
  1. 365
Platform
  1. Windows
My file has hundreds of links. One cell might have a link to 30 files. Each of these source files is in a folder named 2019 and all the file names have 2019 in them somewhere.
I copied the 2019 into a 2020 folder and need to update all the links to show 2020 instead of 2019 in the folder and file names. I get an error when I try to do a replace all - I think because it replaces the folder or file first and without both changes happening at the same time the link is invalid. How can I rename all at once?
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
In principal what you're trying to do should work - I'll gloss over the wisdom of having links to 30 different files in one cell for the moment.

are you trying to replace "2019" with "2020", or "19" with "20"?
Is there any chance there's an element of a filename/Cell reference that matches what you're searching for, but should not be changed.

For example one of your linked files in folder "2019" in the root of drive Z is called "Primary 2019 Source.xlsx"

You've copied the file to the 2020 folder, and changed the filename to "Primary 2020 Source.xlsx", however, one of the sheets in the file is called "Mix320192"

So the link is "Z:\2019\[Primary 2019 Source.xlsx]Mix320192!$A$1"

when you do the find/replace, it's trying to change that to
"Z:\2020\[Primary 2020 Source.xlsx]Mix320202!$A$1"
(note the sheet name has changed)

But that does not exist in the new workbook.
 
Upvote 0

Forum statistics

Threads
1,214,863
Messages
6,121,978
Members
449,058
Latest member
oculus

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