Bonjour bebere, Forum
le bug apparait toujours
Me.TextBox1 = CDbl(Me.TextBox6) + CDbl(Me.TextBox7) + CDbl(Me.TextBox5)
textbox5 au lieu de 15
private Sub ListBox4_Click()
'tableau avec liste des enregistrements evaluation
Dim i As Long
If Me.OptionButton41 Then 'modifie
EffaceTextBox Me
i = Me.ListBox4.ListIndex + 4
Ligne = Feuil3.Range("A" & i & ":AD" & i).Value
Me.TextBox19 = Ligne(1, 2) 'nom
Me.TextBox3 = Ligne(1, 3) ' prenom
Me.TextBox18 = Ligne(1, 4) ' date naissance
Me.TextBox16 = Ligne(1, 6) 'classe
If Ligne(1, 5) = "M" Then Me.OptionButton38 = True 'sexe =m
If Ligne(1, 5) = "F" Then Me.OptionButton39 = True 'sexe =f
If Ligne(1, 7) = "oui" Then 'doublant=oui
Me.OptionButton36 = True: Me.TextBox17 = Ligne(1, 8)
ElseIf Ligne(1, 7) = "non" Then ' doublant = non
Me.OptionButton37 = True: Me.TextBox17 = ""
End If
If Ligne(1, 9) <> "" Then
Me.TextBox11 = Ligne(1, 9) 'Salle
Me.TextBox12 = Ligne(1, 10) 'num secteur
Me.TextBox21 = Ligne(1, 11) 'num voie
Me.TextBox13 = Ligne(1, 12) 'voiecouleur
Me.TextBox14 = Ligne(1, 13) 'couleur
Me.TextBox15 = Ligne(1, 14) 'valeur
Else
For i = 0 To Me.ListBox2.ListCount - 1
If Me.ListBox2.List(i) = Ligne(1, 10) Then Me.ListBox2.ListIndex = i: Exit For
Next
d = LignePremier(Me.ListBox2.List(Me.ListBox2.ListIndex)): f = d + NbX(Me.ListBox2.List(Me.ListBox2.ListIndex))
'n° voie
Me.ListBox3.List = Feuil2.Range(Feuil2.Cells(d, 7), Feuil2.Cells(f, 7)).Value
Me.ListBox3 = ""
For i = 0 To Me.ListBox3.ListCount - 1
If Me.ListBox3.List(i) = Ligne(1, 11) Then Me.ListBox3.ListIndex = i: Exit For
Next
Me.TextBox20 = Ligne(1, 12) 'cotation
Me.TextBox8 = Ligne(1, 13) ' choix cotation
Me.TextBox9 = Ligne(1, 14) 'valeur
End If
'hauteur
If Ligne(1, 9) = 1 Then 'top
Me.OptionButton1 = True
ElseIf Ligne(1, 9) = "0,75" Then
Me.OptionButton2 = True
ElseIf Ligne(1, 9) = "0,66" Then
Me.OptionButton3 = True
ElseIf Ligne(1, 9) = "0,5" Then
Me.OptionButton4 = True
ElseIf Ligne(1, 9) = "0,33" Then
Me.OptionButton5 = True
ElseIf Ligne(1, 9) = 0 Then 'sol
Me.OptionButton42 = True
End If
'valeur c1
If Me.OptionButton1 = False Then
'c101
If Ligne(1, 20) = "0,25" Then
Me.OptionButton7 = True
ElseIf Ligne(1, 20) = "0,75" Then
Me.OptionButton6 = True
End If
'c102
If Ligne(1, 21) = "0,25" Then
Me.OptionButton11 = True
ElseIf Ligne(1, 21) = "0,5" Then
Me.OptionButton10 = True
End If
'c103
If Ligne(1, 22) = "0,125" Then
Me.OptionButton12 = True
ElseIf Ligne(1, 22) = "0,25" Then
Me.OptionButton13 = True
ElseIf Ligne(1, 22) = "0,5" Then
Me.OptionButton14 = True
End If
'c104 et suivant
End If
'valeur c2
'c201
If Ligne(1, 27) = 0 Then 'incorrect
Me.OptionButton35 = True
ElseIf Ligne(1, 27) = "0,25" Then 'correct
Me.OptionButton34 = True
End If
'c202
If Ligne(1, 28) = 1 Then 'oui
Me.OptionButton32 = True
ElseIf Ligne(1, 28) = "0,25" Then 'non
Me.OptionButton33 = True
End If
'c203 et suivant
End If
End Sub
Cdl
Deps