DrawSetInsertToTextbox

Syntax

DrawSetInsertToTextbox [Object]

Remarks

Moves the insertion point to the text area of the specified text box or callout drawing object. If the specified object is not a text box or callout drawing object, an error occurs.

Argument

Explanation

Object

Specifies a drawing object:

Omitted The selected drawing object

> 0 (zero) An object whose anchor is in a range set by the DrawSetRange statement, where 1 is the first object in the range, 2 is the second object, and so on. If the number is not in the range 1 to DrawCount(), an error occurs.


Example

This example sets the drawing range to the entire document and then selects the first drawing object. If the drawing object is a text box or callout, Word moves the insertion point to the text area and inserts some text.


DrawSetRange "\Doc"
Select Case DrawGetType(1)
    Case 3                            'Text box
        DrawSetInsertToTextbox 1
        Insert "Text box text"
    Case 8                            'Callout
        DrawSetInsertToTextbox 1
        Insert "Callout text."
    Case Else
End Select

See Also

DrawCallout, DrawSelect, DrawSetInsertToAnchor, DrawTextBox