I use variation of below code to write large range to txt file (it's currently using "," as separator for columns, you can adjust as needed).
Public Sub OutPutSelectionToNotePad()
Dim strPath As String: strPath = "C:\Temp\TempFile.txt" 'Temp file
Dim intFF As Integer: intFF = FreeFile()
Dim rString As String: rString = ""
Dim intShow As Variant
Dim i As Long, j As Long
Open strPath For Output As #intFF
myArray = Selection.Value
For i = 1 To UBound(myArray, 1)
For j = 1 To UBound(myArray, 2)
rString = rString & IIf(Len(rString) > 0, "," & myArray(i, j), myArray(i, j)) ' change separator as needed
Next j
Print #intFF, rString & vbCrLf
rString = ""
Next i
Close #intFF
intShow = Shell("Notepad.exe " & strPath, vbNormalFocus)
End Sub
Bookmarks