'Fonction pour mettre en nom propre (1ère lettre en majuscule sauf le la des etc...)
Function NomPropre2(ByVal Nom As String) As String
Dim TJn() As String, TExc(), N As Integer, Exclu
TExc = Array("à", "au", "bis", "d'", "de", "des", "du", "en", "l'", "le", "la", "les", "ter")
TJn = Split(Replace(LCase(Nom), "'", "' "), " ")
For N = 0 To UBound(TJn)
For Each Exclu In TExc
If Exclu = TJn(N) Then Exit For
Next Exclu
If InStr("à au bis d' de des du en l' le la les ter", TJn(P)) _
= 0 Then Mid$(TJn(N), 1, 1) = UCase(TJn(N), 1, 1)
Next N
NomPropre2 = Replace(Join(TJn, ""), "' ", "'")
End Function