April 2006
Beginner
1114 pages
98h 16m
English
workbook.SetLinkOnData(Name, [Procedure])
Sets a procedure to run whenever a DDE link is updated.
|
Argument |
Settings |
|---|---|
|
|
The name of the OLE or DDE link as returned by the |
|
|
The name of a procedure to run when the link is updated |
The following code sets the OnUpate procedure to run whenever a DDE link is updated within the workbook:
linkSources = ThisWorkbook.linkSources(xlOLELinks)
If IsArray(linkSources) Then
For Each link In linkSources
If InStr(1, link, "DDE") Then _
ThisWorkbook.SetLinkOnData link, "OnUpdate( )"
Next
End IfRead now
Unlock full access