Range.SetRange (Word)

Sets the starting and ending character positions for an existing range.

Character position values start at the beginning of the story, with the first value being 0 (zero). All characters are counted, including nonprinting characters. Hidden characters are counted even if they're not displayed. The SetRange method redefines the starting and ending positions of an existing Range object. This method differs from the Range method, which is used to create a range, given a starting and ending position.

SetRange (Start, End)


Set myRange = ActiveDocument.Paragraphs(1).Range 
myRange.SetRange Start:=myRange.Start, _ 
 End:=ActiveDocument.Paragraphs(3).Range.End

Arguments

The following arguments are required:

Start (Long) - The starting character position of the range.

End (Long) - The ending character position of the range.