Try the below code...![]()
Private Sub CommandButton1_Click() n = Range("J65536").End(xlUp).Row For i = 1 To n If Cells(i, 10).Value = "No Shops" Then Cells(i, 10).EntireRow.Delete i = i - 1 End If Next i End Sub
Try the below code...![]()
Private Sub CommandButton1_Click() n = Range("J65536").End(xlUp).Row For i = 1 To n If Cells(i, 10).Value = "No Shops" Then Cells(i, 10).EntireRow.Delete i = i - 1 End If Next i End Sub
Last edited by JBeaucaire; 09-14-2012 at 10:33 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks