excel中删除单元格数据为0的行及它的下一行怎么搞!
发布网友
发布时间:2022-04-29 21:54
我来回答
共1个回答
热心网友
时间:2023-05-19 00:30
Sub deleterows()
Dim k&
On Error Resume Next
Application.ScreenUpdating = False
For k = 16 To 2 Step -1
If Cells(k, 1) = 0 Then 'A列为0的
Rows("" & k & ":" & k + 1 & "").Delete Shift:=xlUp '0和下一行,都删除行
End If
Next
Application.ScreenUpdating = True
End Sub