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

Application.WebOpenHyperlink Method (Project)

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

Opens the document specified by a hyperlink address.

Syntax

expression. WebOpenHyperlink( ** 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, the text of the selected field is used.
SubAddressOptionalStringA location within the target document.
AddHistoryOptionalBooleanTrue if the target document is added to the History folder. The default value is True.
NewWindowOptionalBooleanTrue if the target document displays in a new window. The default value is False.

Return Value

Boolean

Remarks

The WebOpenHyperlink method is only available when the selected assignment, resource, or task field contains a hyperlink.

Example

The following example inserts a hyperlink in the Gantt Chart and then opens it.

Sub WebOpen_Hyperlink() 

 'Activate Gantt Chart 
 ViewApply Name:="&;Gantt Chart" 
 SelectRow Row:=2, RowRelative:=False 
 InsertHyperlink Name:="http://MSDN/", Address:="http://msdn.microsoft.com/", SubAddress:="", ScreenTip:="" 

 'Open the web page 
 WebOpenHyperlink Address:="http://msdn.microsoft.com/", SubAddress:="" 
End Sub
© 2018 Microsoft