Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionPrivate Function Nb2Lt(Nombre As Integer) As StringIf Nombre 702 Then Nb2Lt "ZZ": Exit Function If Nombre < 27 Then Nb2Lt = Chr$(64 + Nombre): Exit Function Nb2Lt = Chr$(Nombre \ 26 + 64) & Chr$(Nombre Mod 26 + 64) End Function '--------------------------------------------- Private Function Lt2Nb(Lettre As String) As Integer Lettre = UCase$(Lettre)If Len(Lettre) 1 Then Lt2Nb Asc(Lettre) - 64: Exit Function Lt2Nb = 26 * (Asc(Left$(Lettre, 1)) - 64) + Asc(Mid$(Lettre, 2, 1)) - 64 End Function