ExternalLink

Represents an external link in a workbook.

Properties

NameTypeDescription
TypeNumberGets the type of external link. The value of the property is ExternalLinkType integer constant.
PathTypeStringGet the path type of this external link
OriginalDataSourceStringRepresents stored data source of the external link.
DataSourceStringRepresents data source of the external link.
IsReferredbooleanIndicates whether this external link is referenced by others.
IsVisiblebooleanIndicates whether this external link is visible in MS Excel.

Methods

NameDescription
addExternalNameAdds an external name.

ExternalLink.Type property

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

Type: Number

ExternalLink.PathType property

Get the path type of this external link

Type: String

ExternalLink.OriginalDataSource property

Represents stored data source of the external link.

Type: String

ExternalLink.DataSource property

Represents data source of the external link.

Type: String

ExternalLink.IsReferred property

Indicates whether this external link is referenced by others.

Type: boolean

ExternalLink.IsVisible property

Indicates whether this external link is visible in MS Excel.

Type: boolean

addExternalName(text, referTo)

Adds an external name.

ParameterTypeDescription
textStringThe text of the external name. If the external name belongs to a worksheet, the text should be as Sheet1!Text.
referToStringThe referTo of the external name. It must be a cell or the range.