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
|
Dim plage As Range
Dim Cell As Range
Dim Dernligne As Long
Dim Coderech As String
Coderech = ComboBox8.Value
With Sheets("List")
Dernligne = .Range("A" & Rows.Count).End(xlUp).Row
Set plage = .Range("A11:A" & Dernligne)
For Each Cell In plage
If Cell.Value = Coderech Then
TextBox16.Value = .Cells(Cell.Row, 2).Value
ComboBox1.Value = .Cells(Cell.Row, 5).Value
TextBox4.Value = .Cells(Cell.Row, 6).Value
ComboBox7.Value = .Cells(Cell.Row, 8).Value
TextBox17.Value = .Cells(Cell.Row, 14).Value
TextBox5.Value = .Cells(Cell.Row, 15).Value
TextBox6.Value = .Cells(Cell.Row, 16).Value
TextBox7.Value = .Cells(Cell.Row, 17).Value
TextBox8.Value = .Cells(Cell.Row, 18).Value
TextBox9.Value = .Cells(Cell.Row, 19).Value
TextBox10.Value = .Cells(Cell.Row, 20).Value
TextBox11.Value = .Cells(Cell.Row, 21).Value
TextBox12.Value = .Cells(Cell.Row, 22).Value
TextBox13.Value = .Cells(Cell.Row, 23).Value
TextBox14.Value = .Cells(Cell.Row, 24).Value
TextBox15.Value = .Cells(Cell.Row, 25).Value
TextBox22.Value = .Cells(Cell.Row, 26).Value
ComboBox2.Value = .Cells(Cell.Row, 27).Value
ComboBox3.Value = .Cells(Cell.Row, 28).Value
ComboBox4.Value = .Cells(Cell.Row, 29).Value
ComboBox5.Value = .Cells(Cell.Row, 30).Value
ComboBox6.Value = .Cells(Cell.Row, 31).Value
NumLigne = Cell.Row
End If
Next Cell
End With |
Partager