updating file links with password without openning a workbook

  • Thread starter Thread starter Legacy 365251
  • Start date Start date
L

Legacy 365251

Guest
HI,

I would like to update file links for which are set passwords to open. If I use code
Code:
ActiveWorkbook.UpdateLink Name:=ActiveWorkbook.LinkSources
I get updating links but I have to give all passwords to files. I would like to do that without opening workbooks and giving a password.

I'm trying to that by below, but information "Named argument not found" is return.
Code:
ActiveWorkbook.UpdateLink Name:="G:\users\Log\Master KPI data\Strefa wysyłek\Wysyłki.xlsm", Type:=xlExcelLinks, Password:="wysylki"

How should I do it to get what I want?

Thanks in advance for help
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,223,981
Messages
6,175,771
Members
452,668
Latest member
mrider123

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