Sub SupprimerPolices()
Dim t, exclu, ub As Byte, i&, x$, j As Byte, n&
With Wks4.[A1].CurrentRegion.Resize(, 3)
.Columns(3) = ""
t = .Value
exclu = Array("Bookshelf*", "Marlett", "MS Reference Specialty", "MT*", "Webdings", "Wingdings*")
ub = UBound(exclu)
For i = 1 To UBound(t)
x = t(i, 1)
For j = 0 To ub
If x Like exclu(j) Then t(i, 3) = " " '= 1 si on veut les voir
Next
x = UCase(Replace(Replace(Replace(Replace(Replace(x, " ", ""), ".", ""), ":", ""), "-", ""), "_", ""))
For j = 48 To 57 'chiffres
x = Replace(x, Chr(j), "")
Next
For j = 65 To 90 'lettres majuscules
x = Replace(x, Chr(j), "")
Next
If x <> "" Then t(i, 3) = " " '= 1 si on veut les voir
Next
.Value = t
On Error Resume Next
With .Columns(3).SpecialCells(xlCellTypeConstants)
n = .Count
.EntireRow.Delete
End With
End With
MsgBox n & " police(s) supprimée(s)..."
End Sub