Skip to content

Latest commit

 

History

History
49 lines (28 loc) · 1.35 KB

Word.Range.End.md

File metadata and controls

49 lines (28 loc) · 1.35 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Range.End property (Word)
vbawd10.chm157155332
vbawd10.chm157155332
Word.Range.End
fe90f321-c7b5-bea2-fa60-e6b750b33cf7
06/08/2017
medium

Range.End property (Word)

Returns or sets the ending character position of a range. Read/write Long.

Syntax

expression.End

expression A variable that represents a Range object.

Remarks

Range objects all have a starting position and an ending position. The ending position is the point farthest away from the beginning of the story. If this property is set to a value smaller than the Start property, the Start property is set to the same value (that is, the Start and End property are equal).

This property returns the ending character position relative to the beginning of the story. The main document story (wdMainTextStory) begins with character position 0 (zero). You can change the size of a selection, range, or bookmark by setting this property.

Example

This example changes the ending position of myRange by one character.

Set myRange = ActiveDocument.Paragraphs(1).Range 
myRange.End = myRange.End - 1

See also

Range Object

[!includeSupport and feedback]