Skip to content

Latest commit

 

History

History
64 lines (39 loc) · 1.54 KB

Project.Application.InsertHyperlink.md

File metadata and controls

64 lines (39 loc) · 1.54 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.InsertHyperlink method (Project)
vbapj.chm1309
vbapj.chm1309
project-server
Project.Application.InsertHyperlink
d5a6ffc3-8cfe-e6c9-c347-4e3a739f6b1a
06/08/2017
medium

Application.InsertHyperlink method (Project)

Inserts a hyperlink on the selected assignment, resource, or task.

Syntax

expression. InsertHyperlink( _Name_, _Address_, _SubAddress_, _ScreenTip_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Name Optional String The name of the hyperlink as it appears in the Hyperlink field.
Address Optional String The address of the target document.
SubAddress Optional String A location within the target document.
ScreenTip Optional String The ScreenTip text for the hyperlink.

Return value

Boolean

Remarks

Using the InsertHyperlink method without specifying any arguments displays the Insert Hyperlink dialog box.

Example

The following example inserts a hyperlink in a Gantt Chart view.

Sub Insert_Hyperlink() 
 
 'Activate Gantt Chart view 
 ViewApply Name:="&Gantt Chart" 
 
 SelectRow Row:=2, RowRelative:=False 
 InsertHyperlink Name:="https://MSDN", Address:="https://msdn.microsoft.com/", SubAddress:="", ScreenTip:="" 
End Sub

[!includeSupport and feedback]