I am splitting each row into its own workbook (based on name). If the workbook already exists, it adds it to the next available line. I know the code isn't the prettiest, but it works! I ran it a few times without error. After testing, I tried on a data set of over 1000 rows. For some reason, it errors out about 3% of the time. I can't seem to figure out what causes it. Every Cell in (i, 1) is filled in and has no special characters.
For i = 4 To Cells(Rows.Count, 1).End(xlUp).Row
n = Cells(i, 1).Value
strFileName1 = strPath1 & n & ".xlsx"
Rows(i).EntireRow.Copy
If Dir(strFileName1) = "" Then
Workbooks.Add
ActiveWorkbook.Sheets("Sheet1").Range("A1").Select
ActiveWorkbook.Sheets("Sheet1").Paste
ActiveWorkbook.SaveAs Filename:=strFileName1
ActiveWorkbook.Close SaveChanges:=False
Else
Workbooks.Open (strFileName1)
Range("A" & Rows.Count).End(xlUp).Offset(1).Select
ActiveWorkbook.Sheets("Sheet1").Paste
ActiveWorkbook.SaveAs Filename:=strFileName1
ActiveWorkbook.Close SaveChanges:=False
End If
Next