Sub Epurage()
Dim tablo, ncol%, i&, j%, x$, k%, y$
With ActiveSheet.UsedRange
tablo = .Resize(.Rows.Count + 1).Formula 'matrice, plus rapide, au moins 2 éléments
ncol = UBound(tablo, 2)
For i = 1 To UBound(tablo) - 1
For j = 1 To ncol
x = tablo(i, j)
If Left(x, 1) <> "=" Then 'les formules sont ignorées
For k = Len(x) To 1 Step -1
y = Mid(x, k, 1)
If y <> vbLf And y <> vbCr Then tablo(i, j) = Left(x, k): Exit For
Next k
End If
Next j, i
.Formula = tablo 'restitution
.Rows.AutoFit 'ajustement hauteurs
End With
End Sub