1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| Private Sub CommandButton_Suppression_de_ligne_Click()
Dim ChoixRows As Range
Dim AConfirmer
' Choix des lignes
Set ChoixRows = Application.InputBox( _
Prompt:="Sélectionnez la ligne à couper", _
Title:="Choix de la ligne", _
Type:=8)
' Sélection de la ligne
' Demande de confirmation
ChoixRows.Select
AConfirmer = MsgBox( _
Prompt:="Confirmez la suppression de la ligne", _
Title:="Suppression de la ligne", _
Buttons:=vbYesNo + vbExclamation + _
vbDefaultButton2)
If AConfirmer = vbYes Then ChoixRows.Cut
Sheets("V8X Réformé").Select
End Sub |