VBA for auto-updating links that have passwords (without actually opening each file)

xcellrodeo

Board Regular
Joined
Oct 27, 2008
Messages
209
Good day, I was wondering if I could get some advice on the following.
I have an Excel workbook that has formulaic links to ca. 20 different workbooks (each p/w protected).
Every time I open the workbook to update all links I get 20 windows popping up asking for passwords.
So I have tried to address this by creating a Workbook.Open code. However it still opens 20 workbooks which causes it to crash.
However, the problem with this is that it appears to physically open each workbook (and if its read-only because someone else appears to have the file open at same time) it throws up a window asking for p/w to view read only.
Desired solution:
Is it possible to update all links without having to open each individual p/w protected linked workbook?
If so, what would be the code for this?

Thanks for your help.
 
Last edited:

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

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