- is it possible to add a line break before the inserted text?
P.S. It would also be nice to get rid of the quotes that automatically enclose the appended text (thanks again!)
Sub x()
Dim cell As Range
Dim iFileNo As Integer
For Each cell In Range("A2", Cells(Rows.Count, "A").End(xlUp))
With cell
If Len(Dir(.Text)) > 0 Then
iFileNo = FreeFile()
Open .Text For Append As #iFileNo
Print #iFileNo, vbCrLf & .Offset(, 1).Value
Close #iFileNo
End If
End With
Next cell
End Sub
- could the newly created file automatically be saved in C:\folder2\
That one I leave to you. You would need to copy the unmodified files to folder2, then open and append those files.
Bookmarks