ReplaceLine Method

Applies To

Module object.

Description

The ReplaceLine method replaces a specified line in a standard module or a class module.

Syntax

object.ReplaceLine line, string

The ReplaceLine method has the following arguments.

Argument

Description

object

A Module object.

line

A Long value that specifies the number of the line to be replaced.

string

The text that is to replace the existing line.


Remarks

Lines in a module are numbered beginning with one. To determine the number of lines in a module, use the CountOfLines property.

See Also

CountOfLines property, DeleteLines method, Find method.

Example

See the Find method example.