
With Selection
'移动当前光标到第N行,如要选定当前行,则下一句不需要
.GoTo What:=wdGoToLine, Which:=wdGoToFirst, Count:=N
'选定光标所在行:
.Expand Unit:=wdLine
'删除选定内容:
.Delete
End With
vba是电子表格中的,word里面哪有呢?

With Selection
'移动当前光标到第N行,如要选定当前行,则下一句不需要
.GoTo What:=wdGoToLine, Which:=wdGoToFirst, Count:=N
'选定光标所在行:
.Expand Unit:=wdLine
'删除选定内容:
.Delete
End With
vba是电子表格中的,word里面哪有呢?