Bonsoir,
à coller dans le module de la feuille que tu veux traiter.
Sub Ligne_Gras()
Dim premLig As Integer, premCol As Integer, derLig As Long, derCol As Integer, myRange As Range, myRangeAV As Range, myRangeAP As Range
Application.ScreenUpdating = False
premLig = Cells.Find("*", , , , xlByRows, xlNext).Row
premCol = Cells.Find("*", , , , xlByColumns, xlNext).Column
derLig = Cells.Find("*", , , , xlByRows, xlPrevious).Row
derCol = Cells.Find("*", , , , xlByColumns, xlPrevious).Column
Set myRange = Range(Cells(premLig, premCol), Cells(derLig, derCol))
For i = premLig + 1 To derLig
Set myRange = Range(Cells(i, premCol), Cells(i, derCol))
aa = Application.WorksheetFunction.CountA(myRange)
If aa <> 0 Then
Set myRangeAV = myRange.Offset(-1, 0)
bb = Application.WorksheetFunction.CountA(myRangeAV)
Set myRangeAP = myRange.Offset(1, 0)
bb = bb + Application.WorksheetFunction.CountA(myRangeAP)
If bb = 0 Then myRange.Font.Bold = True
bb = 0
End If
Next i
Application.ScreenUpdating = True
End Sub
Cordialement