_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

  • Procedure
    Type: System.Object

    Required 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.

See Also

Reference

_Workbook Interface

_Workbook Members

Microsoft.Office.Interop.Excel Namespace