TextRange.Start property (Publisher)

Returns or sets a Long that represents the starting character position of a text range. Read/write.

Syntax

expression.Start

expression A variable that represents a TextRange object.

Return value

Long

Remarks

If this property is set to a value larger than that of the End property, the End property is set to the same value as that of the Start property.

Example

This example makes the first 15 characters of the selected text range bold. This example assumes that text is selected in the active publication.

Sub SetSelectionRange() 
 With Selection 
 With .TextRange 
 .Start = 0 
 .End = 15 
 .Font.Bold = msoTrue 
 End With 
 End With 
End Sub

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.