A little verbose but will get the job done.
Sub save_rows_as_text_files()
Dim savePath As String
Dim strName As String
savePath = "C:\Documents and Settings\"
Set thisbook = ActiveWorkbook
For i = 2 To ActiveSheet.UsedRange.SpecialCells(xlCellTypeLastCell).Row
If Range("A" & i) <> "" Then
thisbook.Activate
Rows("1:1").Copy
Set newbook = Workbooks.Add
newbook.Activate
ActiveSheet.Paste
thisbook.Activate
Rows(i & ":" & i).Copy
newbook.Activate
ActiveSheet.Range("A2").Select
ActiveSheet.Paste
strName = ActiveSheet.Range("A2").Value
ActiveWorkbook.SaveAs Filename:=savePath & strName, FileFormat:=xlText, CreateBackup:=False
newbook.Close False
End If
Next
End Sub
Bookmarks