DeleteLines method (VBA Add-In Object Model)
Deletes a single line or a specified range of lines.
Syntax
object.DeleteLines (startline, [ count ])
The DeleteLines syntax has these parts:
Part | Description |
---|---|
object | Required. An object expression that evaluates to an object in the Applies To list. |
startline | Required. A Long specifying the first line you want to delete. |
count | Optional. A Long specifying the number of lines you want to delete. |
Remarks
If you don't specify how many lines you want to delete, DeleteLines deletes one line.
See also
- CodeModule object
- Module.DeleteLines method (Access)
- Collections (Visual Basic Add-In Model)
- Visual Basic Add-in Model reference
- Visual Basic language reference
Support and feedback
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.