Pass a linked sheet's password in VBA

Gingaskunk

New Member
Joined
Jun 2, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hey guys,

I've used the forums for ages but this is my first post (most other things I need I've found in previous posts). Can't find an answer to this one though.

So here's where we are.

Excel Workbook A has a macro that opens Workbook B and does a simple Application.Calculate. However Workbook B has external links in it to Workbook C, which is password protected.

I don't actually need to update the link to Book C when running book A's macro, but right now running it causes "can't update links" pop up that I'm trying to prevent.

I see three ways around this.

a) Turn off notifications during the macro. This would work, but we'd like to see any pop-ups in case there's an issue with Book B we might not otherwise catch.
b) Exclude that update to book C in the application.calculate
c) Pass in the password for workbook C when I run the Book A macro.

What am I missing? I have no idea how to achieve either b or c!

Thank you all.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
What you can try is specify "UpdateLinks:=0" in the workbooks.open statement
 
Upvote 0
What you can try is specify "UpdateLinks:=0" in the workbooks.open statement
Thank for your input I appreciate it. The issue is that there are about 6 other books linked to this file we DO want to update, "UpdateLinks:=0" will prevent any of them from updating.
 
Upvote 0

Forum statistics

Threads
1,214,787
Messages
6,121,569
Members
449,038
Latest member
Guest1337

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