Skip to content

Latest commit

 

History

History
66 lines (41 loc) · 1.8 KB

Project.Application.WebOpenHyperlink.md

File metadata and controls

66 lines (41 loc) · 1.8 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.WebOpenHyperlink method (Project)
vbapj.chm1311
vbapj.chm1311
project-server
Project.Application.WebOpenHyperlink
f1da5d5f-45a1-02e0-8783-7f919578e3fe
06/08/2017
medium

Application.WebOpenHyperlink method (Project)

Opens the document specified by a hyperlink address.

Syntax

expression. WebOpenHyperlink( _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, the text of the selected field is used.
SubAddress Optional String A location within the target document.
AddHistory Optional Boolean True if the target document is added to the History folder. The default value is True.
NewWindow Optional Boolean True 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:="https://MSDN/", Address:="https://msdn.microsoft.com/", SubAddress:="", ScreenTip:="" 
 
 'Open the webpage 
 WebOpenHyperlink Address:="https://msdn.microsoft.com/", SubAddress:="" 
End Sub

[!includeSupport and feedback]