Share via


Application.FollowHyperlink Method

Project Developer Reference

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, Microsoft Office Project 2007 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.

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

See Also