Share via


Hyperlink Property

Returns or sets a friendly name representing a hyperlink address. The name may also be a URL or UNC path. Read/write String.

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 = "http://www.microsoft.com/"
        End If
    Next T
    
End Sub

Applies to | Assignment Object, Assignments Collection Object | Resource Object, Resources Collection Object | Task Object, Tasks Collection Object

See Also | EditClearHyperlink Method | EditHyperlink Method | EditPasteAsHyperlink Method | HyperlinkAddress Property | HyperlinkHREF Property | HyperlinkScreenTip Property | HyperlinkSubAddress Property | InsertHyperlink Method