Workbook.ChangeLink Method (String, String, XlLinkType)

 

Changes a link from one document to another.

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

void ChangeLink(
	string Name,
	string NewName,
	XlLinkType Type = XlLinkType.xlLinkTypeExcelLinks
)

Parameters

Name
Type: System.String

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

NewName
Type: System.String

The new name of the link.

Type
Type: Microsoft.Office.Interop.Excel.XlLinkType

One of the XlLinkType values that specifies the link type.

For information on optional parameters, see Optional Parameters in Office Solutions.

Return to top
Show: