Sub Essai()
If MsgBox("Confirmez-vous l'effacement de ce nouveau Tissu ?", 4, " Ligne Effacée") <> 6 Then Exit Sub
Dim DernLigne&: DernLigne = Cells(Rows.Count, 4).End(3).Row
If DernLigne = 1 Then Exit Sub 'évite d'effacer la ligne d'en-têtes ! (si elle est bien en ligne 1)
Application.ScreenUpdating = 0
With Cells(DernLigne, 4).Resize(, 7)
.ClearContents: .Borders.LineStyle = -4142
With Selection.Interior
.PatternColorIndex = -4105: .ThemeColor = 1
.TintAndShade = 0: .PatternTintAndShade = 0
End With
End With
Cells(DernLigne, 4).Select: Application.ScreenUpdating = -1
MsgBox "La Ligne a été effacée !"
End Sub