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

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
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
 
Upvote 0
About refreshing links

Hi,

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

Thank you again.
 
Upvote 0

Forum statistics

Threads
1,213,554
Messages
6,114,280
Members
448,562
Latest member
Flashbond

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