pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
Hi, 'm using this code to delete rows in very hidden sheet...does not work...please assist...
no error though
Thanks.
no error though
Thanks.
Code:
[/FONT]
[FONT=Courier New][/FONT]
[FONT=Courier New]Sub delete()
Dim lr, i&
lr = Sheet2.Range("a" & Rows.Count).End(xlUp).Row
With Sheet2
For i = lr To 1 Step -1
If Cells(i, "A").Value <> "" Then
Cells(i, "A").EntireRow.delete
End If
Next i
End With
End Sub