回答No1です。次のマクロにしてください。
Sub データの並べ替えと削除()
Range("A1:B1000").Sort key1:=Range("B1"), order1:=xlAscending, Header:=xlYes
For RowPos = 2 To 1000
If Cells(RowPos, 2).Font.Underline = -4119 Then
Cells(RowPos, 2).Select
Selection.EntireRow.Delete
RowPos = RowPos - 1
End If
If Cells(RowPos + 1, 2) = "" Then Exit Sub
Next
End Sub