API Documentation > CorelDRAW > 2025-v26 > TextRange > IVGTextRange
TextRange.Range method
Returns a range of characters relative to the beginning of the current range
Syntax:
Function Range(ByVal Start As Long, ByVal End As Long) As TextRange
Parameters:
Name Type Description
Start
Long
End
Long
Remarks:
The Range method returns a range of characters from a text range.
Examples:
The following VBA example applies bold formatting to the fourth to seventh characters in the range.
Sub Test()
Dim d As Document
Dim s As Shape
Dim t As Text
Set d = CreateDocument
Set s = d.ActiveLayer.CreateParagraphText(3, 3, 5, 5, _
  "This is an example.")
Set t = s.Text
t.Story.Range(4, 7).Bold = True 
End Sub