ReplaceLine Method (VBA Add-In Object Model)

Microsoft VBA

ReplaceLine Method

           

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 you want to replace.
code Required. A String containing the code you want to insert.