bonjour tout le monde , j'ai une erreur au niveau de mon formulaire de modification que je comprends pas trop ça vient d'où .

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 
Private Sub UserForm_Initialize()
Dim Modèle
Dim Constructeurs
Dim Technologie
Dim PPI
Dim Site
Dim Etat
Dim ILD
Dim Résultat
Dim Année
Dim modification
Dim CodeGDO
With Sheets("Remplissage")
CodeGDO = .Range("D3:D" & .Range("D" & Rows.Count).End(xlUp).Row)
'CodeGDO = Sheets("Remplissage").Range("D3:D" & Sheets("Remplissage").Range("D" & Rows.Count).End(xlUp).Row)
End With
With Sheets("Information")
Modèle = .Range("A2:A" & .Range("A" & Rows.Count).End(xlUp).Row)
Constructeurs = .Range("B2:B" & .Range("B" & Rows.Count).End(xlUp).Row)
Technologie = .Range("C2:C" & .Range("C" & Rows.Count).End(xlUp).Row)
ILD = .Range("D2:D" & .Range("D" & Rows.Count).End(xlUp).Row)
Etat = .Range("F2:F" & .Range("F" & Rows.Count).End(xlUp).Row)
Site = .Range("G2:G" & .Range("G" & Rows.Count).End(xlUp).Row)
PPI = .Range("H2:H" & .Range("H" & Rows.Count).End(xlUp).Row)
Année = .Range("J2:J" & .Range("J" & Rows.Count).End(xlUp).Row)
modification = .Range("K2:K" & .Range("K" & Rows.Count).End(xlUp).Row)
Résultat = .Range("I2:I" & .Range("I" & Rows.Count).End(xlUp).Row)
End With
ComboBoxCodeGDO.List() = CodeGDO
ComboBoxModèle.List() = Modèle
ComboBoxConstructeur.List() = Constructeurs
ComboBoxTechnologie.List() = Technologie
ComboBoxPPI.List() = PPI
ComboBoxRésultat.List() = Résultat
ComboBoxSiteOpérationnel.List() = Site
ComboBoxBatterie.List() = Etat
ComboBoxVoyant.List() = Etat
ComboBoxTorres.List() = Etat
ComboBoxPlatine.List() = Etat
ComboBoxTypeILD.List() = ILD
ComboBoxAnnéeBatterie.List() = Année
ComboBoxDateControle.List() = Année
ComboBoxAnnéeControleValise.List() = Année
ComboBoxModificationSchémas.List() = modification
End Sub
Le code plante au niveau de la ligne
Code : Sélectionner tout - Visualiser dans une fenêtre à part
ComboBoxCodeGDO.List() = CodeGDO
.


Dans le comboBoxCode GDO j'ai le code suivant

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Dim ok As Boolean
    Private Sub ComboBoxCodeGDO_Change()
    Dim Ligne As Integer
    Dim derlign As Long
    If ok = True Then Exit Sub
    With Sheets("Remplissage")
    derlign = .Range("A65536").End(xlUp).Row
    Ligne = .Range("A3:AC" & derlign).Find(ComboBoxCodeGDO, lookat:=xlWhole).Row
    ok = True
    ComboBoxCodeDépartHTA.Value = .Range("A" & Ligne)
    ComboBoxNomDépartHTA.Value = .Range("B" & Ligne)
    TextExploit.Value = .Range("C" & Ligne)
    ComboBoxCodeGDO.Value = .Range("D" & Ligne)
    ComboBoxPPI.Value = .Range("E" & Ligne)
    ComboBoxNomPoste.Value = .Range("F" & Ligne).Value
    ComboBoxCommune.Value = .Range("G" & Ligne).Value
    ComboBoxModèle.Value = .Range("H" & Ligne)
    ComboBoxConstructeur.Value = .Range("I" & Ligne)
    ComboBoxTechnologie.Value = .Range("J" & Ligne)
    ComboBoxTypeILD.Value = .Range("K" & Ligne)
    ComboBoxAnnéeBatterie.Value = .Range("L" & Ligne)
    TextCalibrePossible.Value = .Range("M" & Ligne)
    TextRéglageEffectif.Value = .Range("N" & Ligne)
    TextRéglagePréconisé.Value = .Range("O" & Ligne)
    ComboBoxDateControle.Value = .Range("P" & Ligne)
    ComboBoxAnnéeControleValise.Value = .Range("Q" & Ligne)
    TextGéocutil.Value = .Range("R" & Ligne)
    TextTerrain.Value = .Range("S" & Ligne)
    ComboBoxBatterie.Value = .Range("T" & Ligne)
    ComboBoxPlatine.Value = .Range("U" & Ligne)
    ComboBoxVoyant.Value = .Range("V" & Ligne)
    ComboBoxTorres.Value = .Range("W" & Ligne)
    ComboBoxModificationSchémas.Value = .Range("X" & Ligne)
    TextContenuACR.Value = .Range("Y" & Ligne)
    TextActionVisite.Value = .Range("Z" & Ligne)
    TextActionUltérieurement.Value = .Range("AA" & Ligne)
    ComboBoxSiteOpérationnel.Value = .Range("AB" & Ligne)
    ComboBoxRésultat.Value = .Range("AC" & Ligne)
    End With
    ok = False
    End Sub
. Merci d'avance pour vos aides