DeleteLines Method (VBA Add-In Object Model)
This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.
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.