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!
 

Some videos you may like

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

sykes

Well-known Member
Joined
May 1, 2002
Messages
1,758
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,113,916
Messages
5,545,020
Members
410,646
Latest member
LegenDSlayeR
Top