Update links -VBA

excelguru123

New Member
Joined
Jun 23, 2021
Messages
2
Office Version
  1. 2013
Platform
  1. Windows
Hey folks,

I am trying to write a code so that I can update 3 links at one go. I already have a code that pulls together all the currently used links, then in a cell I update those links to correspond to the updated files within a different folder. Now I am trying to use:
VBA Code:
ThisWorkbook.UpdateLink Name:="File Name", Type:=xlExcelLinks

to update to the appropriate updated file but in the file name I am trying to pull in the path from a particular cell. for example I have my new path/file in cell C3 of Sheet1, how can I pulll in that particular cell information into the Name:="File Name" portion of the code above.

Thanks for the help
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,214,650
Messages
6,120,736
Members
448,988
Latest member
BB_Unlv

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