Table of contents
TOC
Collapse the table of content
Expand the table of content

TextRange.End Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Sets or returns a Long that represents the ending character position of a selection or text range. Read/write.

Syntax

expression. End

_expression_A variable that represents an TextRange object.

Return Value

Long

Example

This example starts the selection on the fiftieth character of the current text box shape and ends on the one hundred fiftieth character, then makes the text bold.

Sub test2() 
 With Selection.TextRange 
 .Start = 50 
 .End = 150 
 .Font.Bold = msoTrue 
 End With 
End Sub
© 2018 Microsoft