Inserting text in a document

Use the InsertAfter or InsertBefore method to insert text before or after a Selection or Range object. The following example inserts text at the end of the active document.

ActiveDocument.Content.InsertAfter Text:=" the end."

The following example inserts text before the selection.

Selection.InsertBefore Text:="new text "

After using the InsertBefore or InsertAfter method, the Range or Selection expands to include the new text. Use the Collapse method to collapse a Selection or Range to the beginning or ending point.