Automatically update links to avoid popup

S Oberlander

Board Regular
Joined
Nov 25, 2020
Messages
153
Office Version
  1. 365
Platform
  1. Windows
My code opens a workbook with external links, and gives the below popup. How can I have this happen automatically so the users do not get bothered by this?
I'm posting my code too in case it matters.

VBA Code:
Dim el As Workbook  
Set el = Workbooks.Open(Filename:="file:///\\SERVER\Pricing\Last Twelve Details.xlsb")
'pops up here, I do not want to see the popup
'some stuff is copied over to a different workbook
el.Close savechanges:=False
 

Attachments

  • Screenshot.png
    Screenshot.png
    6.4 KB · Views: 31

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
In 365 try the following

  1. Go to Data > Queries & Connections > Edit Links.
  2. Click Startup Prompt.
  3. Click Dont display alerts and update links.
 
Upvote 0
Solution
Isn't that a machine specific setting that you'd have to perform on every user's pc? I was thinking of this in the workbook module:
VBA Code:
Private Sub Workbook_Open()
Application.ThisWorkbook.UpdateLinks = xlUpdateLinksAlways
End Sub
 
Upvote 0
Isn't that a machine specific setting that you'd have to perform on every user's pc? I was thinking of this in the workbook module:
VBA Code:
Private Sub Workbook_Open()
Application.ThisWorkbook.UpdateLinks = xlUpdateLinksAlways
End Sub
It's still giving me the popup
 
Upvote 0
Sorry then, I don't know what else to suggest. Are you sure that runs? You could put Stop as the first line to find out.
 
Upvote 0
In 365 try the following

  1. Go to Data > Queries & Connections > Edit Links.
  2. Click Startup Prompt.
  3. Click Dont display alerts and update links.
can't believe I missed this
I just googled this issue again and bumped into it...
 
Upvote 0

Forum statistics

Threads
1,223,996
Messages
6,175,857
Members
452,676
Latest member
woodyp

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