Private Sub CommandButton4_Click()
'MsgBox "Michel attend je suis en construction"
Unload Me
Dim NumLig As Long
Sheets("Loto-Quebec").Select
If ListBox1.ListIndex = -1 Then Exit Sub
Select Case MsgBox("Je vais deplacer : " & ListBox1.List(ListBox1.ListIndex) _
& vbCrLf & "vers une feuille d'abandon." _
& vbCrLf & "" _
& vbCrLf & " Voulez-vous continuer " _
, vbYesNo Or vbInformation Or vbDefaultButton1, "Départ ")
Case vbYes
Case vbNo
MsgBox "Je n'ai rien effacé"
Exit Sub
End Select
Dim dl1 As Long ' dernière ligne
Dim nomfeuille1 As String
If ListBox1.ListIndex = -1 Then Exit Sub
' Calculer le numéro de la ligne
' 1 = ligne d'entête + numéro dans ListBox + 1 = ListBox commence à zéro et non 1
NumLig = 3 + Me.ListBox1.ListIndex + 1
' Supprimer de la ListBox
ListBox1.RemoveItem (ListBox1.ListIndex)
nomfeuille1 = "Lacheux"
With Sheets(nomfeuille1)
dl1 = .Cells(Columns(1).Cells.Count, 2).End(xlUp).Row + 1
Sheets("Loto-Quebec").Range("C" & NumLig & ":W" & NumLig).Copy
Sheets("Lacheux").Range("B" & dl1).PasteSpecial 'Paste:=xlPasteValuesAndNumberFormats
Sheets("Loto-Quebec").Range("C" & NumLig & ":W" & NumLig).ClearContents
End With
End Sub