Код: Выделить всё
Sub DeleteBold()
Dim LastRow As Long, r As Long
LastRow = Range("B65536").End(xlUp).Row - 1
For r = LastRow To 1 Step -1
If Cells(r, 2).Font.Bold = True Then Rows(r).Delete
Next r
End Sub
Модератор: Naeel Maqsudov
Код: Выделить всё
Sub DeleteBold()
Dim LastRow As Long, r As Long
LastRow = Range("B65536").End(xlUp).Row - 1
For r = LastRow To 1 Step -1
If Cells(r, 2).Font.Bold = True Then Rows(r).Delete
Next r
End Sub
Код: Выделить всё
....
If Cells(r,2).Font.Bold then Cells(r,2).Resize(4,1).EntireRow.Delete
....