Hello Gamerxx13,
This macro will copy the data highlighted in yellow to text file. Change the text file path and name to what you want.
Sub SaveAsTextFile()
Dim FirstCell As Range
Dim i As Long
Dim LastCell As Range
Dim Rng As Range
Dim TextFile As String
TextFile = "C:\Users\Owner\Documents\Test File 1.txt"
Set FirstCell = Sheet3.Range("C2")
Set LastCell = Sheet3.Cells(Rows.count, "C").End(xlUp)
Set Rng = Sheet3.Range(FirstCell, LastCell).Resize(ColumnSize:=3)
If LastCell.Row < FirstCell.Row Then Exit Sub
Open TextFile For Output Access Write As #1
For i = 1 To Rng.Rows.count
Print #1, Rng.Item(i, 1), Rng.Item(i, 2), Rng.Item(i, 3)
Next i
Close #1
End Sub
Bookmarks