AddFromString Method

      Applies To

Adds a string to the TextBuffer object.

Syntax

Sub AddFromString(newcode As String, [StartLine As Long])

This syntax has these parts:

Part Description
newcode Required String containing the code to be added.
StartLine An optional Long value specifying the line number, at the beginning of which the string is added. If StartLine is unspecified, then AddFromString adds the string to the end of the text buffer, ignoring whether the buffer ends in a newline character.