VBA Update Links not Updating

InfrequentVisitor

New Member
Joined
Mar 30, 2016
Messages
28
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello,

I have two 2010 Excel workbooks:

Book 1 is on a shared drive and linked to multiple other Excel books within the same folder. It automatically updates when opened without a prompt to update.

Book 2 is on my local drive linked to a password protected (modify, not open) Excel book located in a different folder on my local drive. It prompts to update links, but fails to update when "Update" is selected. The cells to update contain a "#REF!" error, but nothing in the formula has a reference error. When checking the link status, it shows "OK". I have to open the linked book for the update to work.

Both workbooks use the same VBA code placed in "ThisWorkBook" to automatically update links when opened:

Code:
Private Sub Workbook_Open()

    'Update all links
    On Error Resume Next
    ThisWorkbook.UpdateLink Name:=ThisWorkbook.LinkSources

End Sub

My Trust Center options allow all Macros and requests the user to update links.

Disabling the password does nothing and co-locating the local files in the same folder only removes the prompt to update, but still fails to update. Thoughts?

Respectfully,

Eric
 
Last edited:

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I should add that:

Book 1 links are simple cells references.

Book 2 links are SUMIFS of a Table.

- Eric
 
Upvote 0

Forum statistics

Threads
1,214,620
Messages
6,120,559
Members
448,970
Latest member
kennimack

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