Bonjour,
Pour information, essaie cette procédure. Les cellules dont le style n'est pas prédéfini seront en police bleu et en gras.
Comme précédemment, travaille sur une copie de ton fichier.
Cordialement.
Public Sub DEMO()
Dim wb As Workbook
Dim ws As Worksheet
Dim rCell As Range, rng As Range, Cell As Range
Application.ScreenUpdating = False
Set wb = ActiveWorkbook
For Each ws In wb.Worksheets
If ws.UsedRange.Address <> "$A$1" Or Not IsEmpty(ws.[A1]) Then
On Error Resume Next
Set rCell = ws.Cells.Find("*", , , , xlByRows, xlPrevious)(2)
If Not rCell Is Nothing Then
ws.Range(rCell, ws.Cells([A:A].Count, 1)).EntireRow.Clear
Set rCell = Nothing
Set rCell = ws.Cells.Find("*", , , , xlByColumns, xlPrevious)(, 2)
If Not rCell Is Nothing Then
ws.Range(rCell, ws.[XFD1]).EntireColumn.Clear
End If
Set rng = ws.UsedRange
End If
On Error GoTo 0
For Each Cell In rng
If Not Cell.Style.BuiltIn Then
With Cell
.Font.Bold = True
.Font.Color = vbBlue
End With
End If
Next Cell
End If
Next ws
Set rng = Nothing: Set rCell = Nothing
Set wb = Nothing
End Sub