I am currently trying to format a worksheet and want to delete blank rows starting with cell 'G5'. If I use the current code below it removes even my protected cells that I want to leave intact.
Any ideas on how to achieve this? I was thinking of selecting a range from G5 downward, but I never can get the xl to end to work properly for me. Any help would be appreciated.![]()
Sub deleteBlankRows() On Error Resume Next Columns("G").SpecialCells(xlCellTypeBlanks).EntireRow.Delete End Sub
Bookmarks