Workbook.ChangeLink Method
Changes a link from one document to another.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Syntax
'Declaration
Sub ChangeLink ( _
Name As String, _
NewName As String, _
Type As XlLinkType _
)
void ChangeLink(
string Name,
string NewName,
XlLinkType Type
)
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.
Remarks
Optional Parameters
For information on optional parameters, see Optional Parameters in Office Solutions.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.