method CalcEdit.InsertText (Text as String, [Index as Variant])
Inserts text to control.

TypeDescription
Text as String A string expression being inserted.
Index as Variant A long expression that defines the index of line where the text follows to be inserted. If missing or negative, the text is added at the end of the control's text.
Use the InsertText method inserts text/lines to control. By default, the MultiLine property is False, which indicates that the control can display a single line only. Use the Text property to specify the control's text. The control's text is evaluated using arithmetic operators. Use the InsertLockedText method inserts locked text/lines to control. Use the Result property to get the result, if the expression is valid. Use the IsValid property to specify whether the Text property is syntactically correct, and may be evaluated. The result is displayed as the user types the expression. The control fires the Change event when the user alters the expression.