Private Sub CommandButton2_Click()
Dim ligne As Long
[COLOR=red]Dim derligne As Long[/COLOR]
With Sheets("Commande")
ligne = .Range("B65536").End(xlUp).Row + 1
.Range("B" & ligne).Value = TextBox26.Value
.Range("C" & ligne).Value = TextBox95
.Range("D" & ligne).Value = TextBox17
.Range("E" & ligne).Value = TextBox18
[COLOR=red] '.Range("F" & ligne).Value = TextBox105[/COLOR]
[COLOR=red] '.Range("G" & ligne).Value = TextBox20[/COLOR]
.Range("[COLOR=red]H[/COLOR]" & ligne).Value = TextBox20
End With
With Sheets("Commande")
derligne = .Range("[COLOR=red]H[/COLOR]65536").End(xlUp).Row
For lg = 1 To ListView1.ListItems.Count
.Cells(derligne + lg, 6) = ListView1.ListItems(lg)
.Cells(derligne + lg, 7) = ListView1.ListItems(lg).ListSubItems(1)
Next
End With
Z1.Value = False
'Module1.imprime
Unload Me
UserForm1.Show
End Sub