API Documentation > CorelDRAW > 2025-v26 > TextRange > IVGTextRange
TextRange.Delete method
Deletes the characters in the range
Syntax:
Sub Delete()
Remarks:
The Delete method removes specified characters from a text range.
Examples:
The following VBA example deletes the first word in the text range.
Sub Test()
Dim d As Document
Dim t As Text
Dim s As Shape
Set d = CreateDocument
Set s = d.ActiveLayer.CreateParagraphText(3, 3, 5, 5, "This is an example.")
Set t = s.Text
t.Story.Words.First.Delete 
End Sub