📜  删除excel vba代码中的行 - VBA代码示例

📅  最后修改于: 2022-03-11 14:51:57.503000             🧑  作者: Mango

代码示例1
Sub DeleteRowswithSpecificValue()
For i = Selection.Rows.Count To 1 Step -1
If Cells(i, 2).Value = "Printer" Then
Cells(i, 2).EntireRow.Delete
End If
Next i
End Sub