Private Sub Save_CSV()
Dim delim As String, TxtArray() As String
delim = ","
MyFile = "c:\temp\test.txt"
ReDim TxtArray(1 To Selection.Rows.Count)
For Each cell In Selection.Resize(Selection.Rows.Count, 1)
i = i + 1
For Each subcell In Intersect(cell.EntireRow, Selection)
TxtArray(i) = TxtArray(i) & subcell.Text & delim
Next subcell
Next cell
Close #1
Open MyFile For Output As #1
For i = 1 To UBound(TxtArray)
Print #1, TxtArray(i)
Next i
Close #1
Msg = "File saved as:" & vbCrLf
Msg = Msg & MyFile
MsgBox Msg, vbOKOnly, "CSV File"
End Sub