Application.FollowHyperlink Method (Project)

Opens the document specified by a hyperlink address.

Syntax

expression. FollowHyperlink( _Address_, _SubAddress_, _AddHistory_, _NewWindow_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
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, Project 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.

Return Value

Boolean

Example

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

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