Table of contents
TOC
折叠目录
展开目录

DeleteLines 方法(VBA 加载项对象模型)DeleteLines Method (VBA Add-In Object Model)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

删除一行或多个指定的范围的行。语法对象.DeleteLines (startline [、计数] DeleteLines语法具有下列组成部分:Deletes a single line or a specified range of lines. Syntaxobject.DeleteLines (startline [, count ] ) The DeleteLines syntax has these parts:

部件Part说明Description
objectobject必填。对象表达式,计算为在应用于列表中的对象。Required. An object expression that evaluates to an object in the Applies To list.
startlinestartline必填。要删除一个指定第一行。Required. A Long specifying the first line you want to delete.
计数count可选。要删除一个指定的行数。Optional. A Long specifying the number of lines you want to delete.

备注如果您不指定要删除的行数, DeleteLines将删除一个行。Remarks If you don't specify how many lines you want to delete, DeleteLines deletes one line.

© 2018 Microsoft