Sub Demo1()
Const E = " .csv"
Dim F%, P$, Rw As Range, N%
F = FreeFile
P = ThisWorkbook.Path & Application.PathSeparator & "XL export "
For Each Rw In Sheet1.UsedRange.Rows
If Rw.Row Mod 3 = 1 Then Close #F: N = N + 1: Open P & N & E For Output As #F Else Print #F,
Print #F, Join(Application.Index(Rw.Value2, 1, 0), ",");
Next
Close #F
End Sub
Sub Demo1r()
Const E = " .csv"
Dim F%, P$, R&, N%
F = FreeFile
P = ThisWorkbook.Path & Application.PathSeparator & "XL export "
With Sheet1.UsedRange
For R = 1 To .Columns(1).Find("*", , xlValues, , , xlPrevious).Row
If R Mod 3 = 1 Then Close #F: N = N + 1: Open P & N & E For Output As #F Else Print #F,
Print #F, Join(Application.Index(.Rows(R).Value2, 0), ",");
Next
End With
Close #F
End Sub