duplicate Method

Microsoft FrontPage Visual Basic

duplicate Method

Returns an IHTMLTxtRange that represents a duplicate of another range.

expression.duplicate

expression    Required. An expression that returns an IHTMLTxtRange object.

Example

The following example creates a duplicate of the current selection in the active document.

    Dim objRange As IHTMLTxtRange
Dim objDuplicate As IHTMLTxtRange

Set objRange = ActiveDocument.selection.createRange
Set objDuplicate = objRange.Duplicate