Bonjour a toutes et tous, forum bonjour,
Voila je souhaiterai afficher une police de caractères avec les codes ascii, je voudrai le faire en vba j'ai essayer mais voyez je foire complètement sur ce coup la.
merci de votre aide et de votre temps et bonne fin d'après midi a vous.
Raymond
Option Explicit
'*** affichage police de caracteres WINGDINGS
Sub Test()
Dim Cpt As Integer, Lig As Integer, Col As Integer
Col = 1
'[A1:V25].Value = ""
For Cpt = 1 To 255
Cells(Lig + Cpt, Col) = Cpt
If Cpt = 25 Then Lig = -25: Col = 3
If Cpt = 50 Then Lig = -50: Col = 5
If Cpt = 75 Then Lig = -75: Col = 7
If Cpt = 100 Then Lig = -100: Col = 9
If Cpt = 125 Then Lig = -125: Col = 11
If Cpt = 150 Then Lig = -150: Col = 13
If Cpt = 175 Then Lig = -175: Col = 15
If Cpt = 200 Then Lig = -200: Col = 17
If Cpt = 225 Then Lig = -225: Col = 19
If Cpt = 250 Then Lig = -250: Col = 21
Next Cpt
End Sub
'Public Function CodeASC(Valeur As String) As Integer
'CodeASC = Asc(Valeur)
'End Function