Share via


Range.ClearHyperlinks Method

Removes all hyperlinks from the specified range.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Sub ClearHyperlinks
'Usage
Dim instance As Range

instance.ClearHyperlinks()
void ClearHyperlinks()

Remarks

Calling the ClearHyperlinks() method on the specified range is equivalent to using the Clear Hyperlinks command from the Clear drop-down list in the Editing section of the Home tab. Only hyperlinks will be removed; all other cell content, such as text and formatting will be unaffected.

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Excel Namespace