_Workbook.ChangeLink Method

Changes a link from one document to another.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Sub ChangeLink ( _
    Name As String, _
    NewName As String, _
    Type As XlLinkType _
)
'Usage
Dim instance As _Workbook
Dim Name As String
Dim NewName As String
Dim Type As XlLinkType

instance.ChangeLink(Name, NewName, Type)
void ChangeLink(
    string Name,
    string NewName,
    XlLinkType Type
)

Parameters

  • Name
    Type: System.String

    Required String. The name of the Microsoft Excel or DDE/OLE link to be changed, as it was returned from the LinkSources method.

  • NewName
    Type: System.String

    Required String. The new name of the link.

See Also

Reference

_Workbook Interface

_Workbook Members

Microsoft.Office.Interop.Excel Namespace