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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

InfrequentVisitor

New Member
Joined
Mar 30, 2016
Messages
28
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I should add that:

Book 1 links are simple cells references.

Book 2 links are SUMIFS of a Table.

- Eric
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,983
Messages
5,834,707
Members
430,311
Latest member
JAC0617

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
Top