Table of contents
TOC
Collapse the table of content
Expand the table of content

InsertLines Method (VBA Add-In Object Model)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Inserts a line or lines of code at a specified location in a block of code. Syntaxobject.InsertLines(line, code) The InsertLines syntax has these parts:

PartDescription
objectRequired. An object expression that evaluates to an object in the Applies To list.
lineRequired. A Long specifying the location at which you want to insert the code.
codeRequired. A String containing the code you want to insert.

Remarks If the text you insert using the InsertLines method is carriage return-linefeed delimited, it will be inserted as consecutive lines.

© 2018 Microsoft