Application.EditClearHyperlink method (Project)

Clears the Hyperlink, Hyperlink Address, Hyperlink SubAddress, and HyperlinkHREF fields of the selected assignment, resource, or task.

Syntax

expression. EditClearHyperlink

expression A variable that represents an Application object.

Return value

Boolean

Example

The following example first creates a hyperlink in the Gantt Chart view and then clears it.

Sub EditClear_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:="" 
 
 EditClearHyperlink 
End Sub

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.