Update links not working

rickblunt

Well-known Member
Joined
Feb 18, 2008
Messages
609
Office Version
  1. 2019
Platform
  1. Windows
Hello, I have been using the following code to update the links in my WB's for quite a while and it has always worked fine. Now it seems that they do nothing and the only way for my data to refresh is to open and close all of the source workbooks. Is there something wrong with the code or something that I am missing? Even if I do a typical refresh all from the tool bar nothing gets updated either.

I guess I could write up a new sub but I am pretty sure that I can't write a sub in one workbook to open and close other WB's; so I am at a loss as to how to get around this. I would appreciate any help with this - thanks,

VBA Code:
Sub UpdateLinks()

        ActiveWorkbook.UpdateLink Name:="L:\CommonRW\FacilitiesApps.xlsm", Type:= _
            xlExcelLinks
        ActiveWorkbook.UpdateLink Name:= _
        "L:\CommonRW\Facilities Inspection App.xlsm", Type:= _
            xlExcelLinks
        Application.OnTime DateAdd("s", 1800, Now), "UpdateLinks"
              
        [B99] = Now
        End With  
                  
        ActiveWorkbook.Save        

End Sub
 

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,214,990
Messages
6,122,626
Members
449,094
Latest member
bsb1122

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