Share via


empty Method

Deselects the current selection.

expression.empty

*expression   * Required. An expression that returns an IHTMLSelectionObject object.

Example

The following example creates a selection object from the currently selected text in the active document and then deselects the text.

Dim objSel As IHTMLSelectionObject

Set objSel = ActiveDocument.selection

objSel.empty

Applies to | IHTMLSelectionObject Object