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
| Private Sub ComboBoxGDO_Change()
'Dim cell As Range
'Dim cherch As String, derlign As Long
'derlign = Sheets("Remplissage").Range("A65536").End(xlUp).Row
'cherch = ComboBoxGDO
'Set cell = Sheets("Remplissage").Range("A3:AC" & derlign).Find(cherch, lookat:=xlWhole)
'If Not cell Is Nothing Then
'Ligne = cell.Row
If Teste = True Then
Teste = False
Exit Sub
End If
If ComboBoxGDO <> "" Then
Ligne = ComboBoxGDO.ListIndex + 2
TextHTA.Value = Range("A" & Ligne)
TextNom.Value = Range("B" & Ligne)
TextExploit.Value = Range("C" & Ligne)
ComboBoxGDO.Value = Range("D" & Ligne)
ComboBoxPPI.Value = Range("E" & Ligne)
TextPoste.Value = Range("F" & Ligne).Value
TextCommune.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 If
End Sub |
Partager