Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.FollowHyperlink Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Opens the document specified by a hyperlink address.

Syntax

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

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
AddressOptionalStringThe 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.
SubAddressOptionalStringA location within the target document.
AddHistoryOptionalBooleanTrue if the target document should be added to the History folder. The default value is True.
NewWindowOptionalBooleanTrue 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:="http://www.Microsoft.com", _ 
        NewWindow:=True, AddHistory:=True 
End Sub
© 2018 Microsoft