Hello,
I wish to be able to save some information from an excel spreadsheet to a txt file.
Two items that I need to resolve:
What is the proper way to copy the spreadsheet data to the file? I already have the code in to open the file.
The code below does not actually copy the data.
What is the best way to save this .txt file with VBA commands?
Thank you.
snippet:
If Dir("C:\temp\Parse.txt") <> "" Then
Open "C:\temp\Parse.txt" For Output As #1
Dim TxtToWrite As String
TxtToWrite = "Maxima "
Print #1, TxtToWrite
End If
I wish to be able to save some information from an excel spreadsheet to a txt file.
Two items that I need to resolve:
What is the proper way to copy the spreadsheet data to the file? I already have the code in to open the file.
The code below does not actually copy the data.
What is the best way to save this .txt file with VBA commands?
Thank you.
snippet:
If Dir("C:\temp\Parse.txt") <> "" Then
Open "C:\temp\Parse.txt" For Output As #1
Dim TxtToWrite As String
TxtToWrite = "Maxima "
Print #1, TxtToWrite
End If
Last edited: