FollowHyperlink Method

Opens the document specified by a hyperlink address.

Syntax

expression**.FollowHyperlink(Address, SubAddress, AddHistory, NewWindow)**

*expression   *     Optional. An expression that returns an Application object.

Address    Optional String. The address of the target document. If Address is omitted and a text field is selected, the text of the selected field is used. If Address is omitted and a text field is not selected, Microsoft Office Project 2003 returns an error.

SubAddress    Optional String. A location within the target document.

AddHistory    Optional Boolean. True if the target document should be added to the History folder. The default value is True.

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

Example

The following example opens a hyperlink to the Microsoft Web site in its own window.

Sub GoToMicrosoft()
    Application.FollowHyperlink Address:="http://www.Microsoft.com", _
        NewWindow:=True, AddHistory:=True
End Sub

Applies to | Application Object

See Also | WebOpenFavorites Method | WebOpenHyperlink Method