Module.ReplaceLine Method (Access)
The ReplaceLine method replaces a specified line in a standard module or a class module.
Syntax
expression .ReplaceLine(Line, String)
expression A variable that represents a Module object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
Line |
Required |
Long |
The number of the line to be replaced. |
String |
Required |
String |
The text that is to replace the existing line. |
Return Value
Nothing
Remarks
Lines in a module are numbered beginning with one. To determine the number of lines in a module, use the CountOfLines property.