Public Function sansAccents(txt As String) As String
Application.Volatile
For i% = 1 To Len(txt)
Select Case Mid(txt, i, 1)
Case Chr(192) To Chr(197), Chr(224) To Chr(229)
char = "A"
Case Chr(232) To Chr(235), Chr(200) To Chr(203)
char = "E"
Case "í", "ì", "î", "ï", "Í", "Ì", "Î", "Ï"
char = "I"
Case "ó", "ò", "ô", "ö", "õ", "Ó", "Ò", "Ô", "Ö", "Õ", Chr(248)
char = "O"
Case "ú", "ù", "û", "ü", "Ú", "Ù", "Û", "Ü"
char = "U"
Case "ÿ", "ý", Chr(221), Chr(159)
char = "Y"
Case "ñ", "Ñ"
char = "N"
Case "ç", Chr(199)
char = "C"
Case Chr(230), Chr(198)
char = "AE"
Case Chr(138)
char = "S"
Case Chr(140), Chr(156)
char = "OE"
Case Else
char = UCase(Mid(txt, i, 1))
End Select
laChaine = laChaine & char
Next i
sansAccents = Trim(laChaine)
End Function