_Workbook.SetLinkOnData Method
Sets the name of a procedure that runs whenever a DDE link is updated.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub SetLinkOnData ( _
Name As String, _
Procedure As Object _
)
'Usage
Dim instance As _Workbook
Dim Name As String
Dim Procedure As Object
instance.SetLinkOnData(Name, Procedure)
void SetLinkOnData(
string Name,
Object Procedure
)
Parameters
Name
Type: System.StringRequired String. The name of the DDE/OLE link as returned from the LinkSources method.
Procedure
Type: System.ObjectRequired String. The name of the procedure to be run when the link is updated. This can be either a Microsoft Excel 4.0 macro or a Visual Basic procedure. Set this argument to an empty string ("") to indicate that no procedure should run when the link is updated.