다음을 통해 공유


Workbook.ChangeLink Method (Excel)

Changes a link from one document to another.

Syntax

.ChangeLink(Name, NewName, Type)

A variable that represents a Workbook object.

Parameters

Name

Required/Optional

Data Type

Description

Name

필수

String

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

NewName

필수

String

The new name of the link.

Type

선택

XlLinkType

The link type.

Example

This example changes a Microsoft Excel link.

참고

This example assumes at least one formula exists in the active workbook that links to another Excel source.

ActiveWorkbook.ChangeLink "c:\excel\book1.xls", _ 
 "c:\excel\book2.xls", xlExcelLinks

참고 항목

개념

Workbook Object

Workbook Object Members