ReplaceLine Method

Microsoft Access Visual Basic

ReplaceLine Method

       

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

expression.ReplaceLine(Line, String)

expression   Required. An expression that returns one of the objects in the Applies To list.

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

String  Required 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.