Module.ReplaceLine method (Access)
The ReplaceLine method replaces a specified line in a standard module or a class module.
expression.ReplaceLine (Line, String)
expression A variable that represents a Module object.
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. |
Nothing
Lines in a module are numbered beginning with one. To determine the number of lines in a module, use the CountOfLines property.
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.