Previous Document Next Document

Object Model Reference : Classes : T : TextRange : Methods : TextRange.Select


TextRange.Select

Sub Select()

Description

Member of TextRange

The Select method selects the characters in a text range.

VBA example

The following VBA example places the text in editing mode and selects the first word.

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.BeginEdit
 t.Story.Words.First.Select
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.