Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Application.InsertHyperlink Method (Project)

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

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

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

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:="http://MSDN", Address:="http://msdn.microsoft.com/", SubAddress:="", ScreenTip:="" 
End Sub
Show:
© 2015 Microsoft