delete rows in excel vba code

The solution for “delete rows in excel vba code” can be found here. The following code will assist you in solving the problem.

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

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts