[COLOR="Blue"]Public[/COLOR] [COLOR="Blue"]Sub[/COLOR] UnlockRange()
[COLOR="Blue"]Dim[/COLOR] rngFilter [COLOR="Blue"]As[/COLOR] Range
[COLOR="Blue"]Set[/COLOR] rngFilter = Range(Cells(1, 1), Cells(Rows.Count, 1).End(xlUp))
[COLOR="Blue"]With[/COLOR] rngFilter
.Parent.Unprotect Password:="password"
.Parent.AutoFilterMode = [COLOR="Blue"]False[/COLOR]
.AutoFilter field:=1, Criteria1:="<>"
.Offset(1).SpecialCells(xlCellTypeVisible).EntireRow.Locked = [COLOR="Blue"]False[/COLOR]
.End(xlDown).Offset(1).EntireRow.Delete
.AutoFilter
.Parent.Protect Password:="password"
[COLOR="Blue"]End[/COLOR] [COLOR="Blue"]With[/COLOR]
[COLOR="Blue"]End[/COLOR] [COLOR="Blue"]Sub[/COLOR]