How can I amend where I get link updates from

ghrek

Active Member
Joined
Jul 29, 2005
Messages
427
Hi
I have a macro as shown below and im updating links.

Issue is the workbook that it updating from will not always be 5555 but all different numbers.

Is there anyway I can change it to update to new name regardless of name after \BACKUP ?? but maybe from active workbook?

ActiveWorkbook.ChangeLink Name:= _
"T:\Passenger Accounts\SHARED\passacc\Excel\passacc\backup\5555\Week1.xlsm", _
NewName:= _
"T:\Passenger Accounts\SHARED\passacc\Excel\passacc\INPUT SCREENS\WEEK 1.xlsm" _
, Type:=xlExcelLinks
 

Excel Facts

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

Forum statistics

Threads
1,224,746
Messages
6,180,704
Members
452,994
Latest member
Janick

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