Guzzlr
Well-known Member
- Joined
- Apr 20, 2009
- Messages
- 982
- Office Version
- 2021
- Platform
- Windows
Code:
LastRow = Range("B:D").Cells.Find("*", _
SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
MsgBox "The Last Non-Blank Row Is " & LastRow
For Each sht In ActiveWorkbook.Worksheets
If sht.Visible And (sht.Name = "Growth") Then
sht.Activate
For r = Cells(Rows.Count, 2).End(xlUp).Row To 5 Step -1
If Cells(r, 2).Value = 0 Then Cells(r).Delete
Next r
End If
Next sht
Hello All
I'm trying to delete the cell in Column B if it is a "0", instead of the entire row. The code above skips over and does not delete anything.
How do I get the cell to delete, essentially like deleting and shifting cells up with each deletion containing "0".
Thanks for the help
2013
Last edited by a moderator: