The DeleteLines method deletes lines from a standard module or a class module.
Syntax
object.DeleteLines startline, count
The DeleteLines method has the following arguments.
Argument | Description |
---|---|
object | A Module object. |
startline | A Long value that specifies the number of the line from which to begin deleting. |
count | A Long value that specifies the number of lines to delete. |
Remarks
Lines in a module are numbered beginning with one. To determine the number of lines in a module, use the CountOfLines property.
To replace one line with another line, use the ReplaceLine method.