_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.StringRequired 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.StringRequired String. The new name of the link.
Type
Type: Microsoft.Office.Interop.Excel.XlLinkTypeOptional XlLinkType. The link type.