ReplaceLine method (VBA Add-In Object Model)

Replaces an existing line of code with a specified line of code.

Syntax

object.ReplaceLine (line, code)

The ReplaceLine syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
line Required. A Long specifying the location of the line that you want to replace.
code Required. A String containing the code that you want to insert.

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.