Assembly: Microsoft.Office.Tools.Excel (in microsoft.office.tools.excel.dll)
public virtual void ChangeLink ( string Name, string NewName, [OptionalAttribute] XlLinkType Type )
The name of the Microsoft Office Excel or DDE/OLE link to be changed, as it was returned from themethod.
The new name of the link.
One of thevalues that specifies the link type.
The following code example creates an external link to an Excel workbook and then uses the ChangeLink method to change the link destination. This example assumes that workbooks Book2.xls and Book3.xls exist at the root of the C directory.