Public Sub ProcessData()
Const TEST_COLUMN As String = "A" '<=== change to suit
Dim i As Long
Dim LastRow As Long
With ActiveSheet
LastRow = .Cells(.Rows.Count, TEST_COLUMN).End(xlUp).Row
For i = LastRow To 0 Step -1
If i < LastRow Then
.Rows(i + 1).Insert
With .Cells(i + 1, TEST_COLUMN)
.Value = "edit" & i + 1
.Font.Underline = xlUnderlineStyleNone
.Font.ColorIndex = 0
End With
End If
If i > 0 Then
.Rows(i + 1).Insert
With .Cells(i + 1, TEST_COLUMN)
.Value = "next"
.Font.Underline = xlUnderlineStyleNone
.Font.ColorIndex = 0
End With
.Cells(i, TEST_COLUMN).Value = "set email-pattern " & .Cells(i, TEST_COLUMN).Value
End If
Next i
End With
End Sub