Task.HyperlinkAddress property (Project)

Gets or sets the URL or UNC path of a document. Read/write String.

Syntax

expression.HyperlinkAddress

expression A variable that represents a Task object.

Example

The following example adds a hyperlink to all tasks in the active project, including tasks in subprojects.

Sub AddHyperlink() 
 Dim T As Task 
 
 For Each T In ActiveProject.Tasks 
 If Not (T Is Nothing) Then 
 T.Hyperlink = "Microsoft" 
 T.HyperlinkAddress = "https://www.microsoft.com/" 
 End If 
 Next T 
 
End Su

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.