Workbook.ChangeLink Method
Changes a link from one document to another.
Namespace: Microsoft.Office.Tools.Excel
Assemblies: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.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.StringThe name of the Microsoft Office Excel or DDE/OLE link to be changed, as it was returned from the LinkSources method.
NewName
Type: System.StringThe new name of the link.
Type
Type: XlLinkTypeOne 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.