Private Sub Command1_Click()
action "c:\123.txt", "c:\new.txt"
End Sub
Sub action(ByVal txtpath As String, ByVal newtxt As String)
On Error Resume Next
Dim filetxt As String, x As Variant, i As Long
filetxt = String(FileLen(txtpath), " ")
Open txtpath For Binary As 1
Get #1, , filetxt
Close 1
x = Split(filetxt, vbCrLf)
filetxt = Replace(filetxt, x(33), "abcdefghijklmn" & vbCrLf & x(33))
For i = 9 To 17
filetxt = Replace(filetxt, x(i) & vbCrLf, "")
Next
Kill newtxt
Open newtxt For Output As #1
Print #1, filetxt
Close #1
End Sub