UpdateLink

Skippy

Board Regular
Joined
Mar 3, 2002
Messages
194
I have the following sub in Book1 which, every 10 seconds, searches all open Workbooks for a Sheet called "Run Calcs". There is a link from "Run Calcs" to Book1 that I want updated. When I change the cell in "Run Calcs", the cell in Book1 does not get updated after 10s although the code does run through the UpDateLink. Any ideas what the problem is!

Thanks


Sub dom_Update()
Dim dt_timer As Date
Dim j As Variant

On Error Resume Next

j = ActiveWorkbook.LinkSources
For i = 1 To 10

If InStr(1, j(i), "Run Calcs", vbTextCompare) > 0 Then
ActiveWorkbook.UpdateLink Name:=j(i)
Exit For
End If
Name:=ActiveWorkbook.LinkSources
Next i

dt_timer = DateAdd("s", 10, Now())
Application.OnTime dt_timer, "modForecast.dom_Update"

End Sub
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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