Follow Method

Microsoft Office Web Components Object Model

Show All

Follow Method

       

Follow method as it applies to the Hyperlink object.

Displays a cached document if it has already been downloaded. Otherwise, this method resolves the hyperlink, downloads the target document, and then displays the document.

expression.Follow(NewWindow, AddHistory, ExtraInfo, Method, HeaderInfo)

expression   Required. An expression that returns a Hyperlink object.

NewWindow  Optional Variant. True to display the target document in a new window. The default value is False.

AddHistory  Optional Variant. This argument is not supported.

ExtraInfo  Optional Variant. This argument is not supported.

Method  Optional Variant. This argument is not supported.

HeaderInfo  Optional Variant. This argument is not supported.

 

Follow method as it applies to the PivotHyperlink object.

Displays a cached document if it has already been downloaded. Otherwise, this method resolves the hyperlink, downloads the target document, and then displays the document.

expression.Follow(NewWindow)

expression   An expression that returns a PivotHyperlink object.

NewWindow   Optional Boolean. True to display the target document in a new window. The default value is False.

 

Example

This example resolves the hyperlink in cell B15 on the active worksheet, downloads the target document, and then displays the document.

Spreadsheet1.ActiveSheet.Range("b15").Hyperlink.Follow