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

ReplaceLine Method (VBA Add-In Object Model)

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

Replaces an existing line of code with a specified line of code. Syntaxobject.ReplaceLine(line, code) The ReplaceLine syntax has these parts:

objectRequired. An object expression that evaluates to an object in the Applies To list.
lineRequired. A Long specifying the location of the line you want to replace.
codeRequired. A String containing the code you want to insert.
© 2018 Microsoft