Private Sub CommandButton1_Click()
Dim Test As Boolean
With Cells(Rows.Count, 1).End(3)(2)
.Value = TextBox1 'juste pour le test
.Resize(, 26) = .Resize(, 26).Value
Intersect(ActiveSheet.UsedRange, .Resize(, 26)).Interior.Color = 255
Test = .Offset(, 1).HasFormula
MsgBox .Offset(, 1).Address & Chr(13) & "contient une formule? " & Test & Chr(13) & .Offset(, 1)
Test = .Offset(-1, 1).HasFormula
MsgBox .Offset(-1, 1).Address & Chr(13) & "contient une formule? " & Test & Chr(13) & .Offset(-1, 1).FormulaLocal
.EntireRow.Delete
End With
End Sub