
## ExternalLink class

Represents an external link in a workbook.

## Methods

| Name | Description |
| --- | --- |
| [addExternalName(text, referTo)](#addexternalname) | Adds an external name. |
| [getDataSource()](#getdatasource) | Represents data source of the external link. |
| [getOriginalDataSource()](#getoriginaldatasource) | Represents stored data source of the external link. |
| [getPathType()](#getpathtype) | Get the path type of this external link |
| [getType()](#gettype) | Gets the type of external link. The value of the property is ExternalLinkType integer constant. |
| [isReferred()](#isreferred) | Indicates whether this external link is referenced by others. |
| [isVisible()](#isvisible) | Indicates whether this external link is visible in MS Excel. |
| [setDataSource()](#setdatasource) | Represents data source of the external link. |
| [setOriginalDataSource()](#setoriginaldatasource) | Represents stored data source of the external link. |

### addExternalName(text, referTo) {#addexternalname}

Adds an external name.

| Parameter | Type | Description |
| --- | --- | --- |
| text | String | The text of the external name. If the external name belongs to a worksheet, the text should be as Sheet1!Text. |
| referTo | String | The referTo of the external name. It must be a cell or the range. |

### getDataSource() {#getdatasource}

Represents data source of the external link.

### getOriginalDataSource() {#getoriginaldatasource}

Represents stored data source of the external link.

### getPathType() {#getpathtype}

Get the path type of this external link

### getType() {#gettype}

Gets the type of external link. The value of the property is ExternalLinkType integer constant.

### isReferred() {#isreferred}

Indicates whether this external link is referenced by others.

### isVisible() {#isvisible}

Indicates whether this external link is visible in MS Excel.

### setDataSource() {#setdatasource}

Represents data source of the external link.

### setOriginalDataSource() {#setoriginaldatasource}

Represents stored data source of the external link.
