Refreshing excel links

Mr_K

New Member
Joined
Jan 23, 2006
Messages
23
I have an excel workbook with multiple links.

Initially I wanted to be able to refresh the links in the sequence I liked. I then created a command button with the ff code:

ActiveWorkbook.UpdateLink Name:="Link1", Type:=xlExcelLinks
ActiveWorkbook.UpdateLink Name:="Link2", Type:=xlExcelLinks

I now can refresh the links in the sequence I want the only problem I now have is that it brings up a pop up window for each link I have to refresh. I want to automate this process and without getting a pop up window to confirm the location.

Help is greatly appreciated!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

sykes

Well-known Member
Joined
May 1, 2002
Messages
1,882
Office Version
  1. 365
Platform
  1. Windows
Hi

Not sure if this will do the trick, as I havn't used it much, but try:
Code:
Application.DisplayAlerts = False
ActiveWorkbook.UpdateLink Name:="Link1", Type:=xlExcelLinks
ActiveWorkbook.UpdateLink Name:="Link2", Type:=xlExcelLinks
Application.DisplayAlerts = true
 

Mr_K

New Member
Joined
Jan 23, 2006
Messages
23
About refreshing links

Hi,

Thank you for your suggestion. Unfortunately it still presents me with the pop up windows.

Thank you again.
 

Forum statistics

Threads
1,140,937
Messages
5,703,256
Members
421,289
Latest member
fbohlandt

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