I am not sure what column is going to which field, but use a macro like this: replace the column letters in the code with the correct column letter for the information you want exported. Also, I was not sure if you wanted to be prompted for each record or
for each file, so I did it for each record.
Option Explicit
Sub ExportToTX()
Dim fName As String
Dim WholeLine As String
Dim FNum As Integer
Dim RowNdx As Long
Dim StartRow As Long
Dim EndRow As Long
fName = ThisWorkbook.Path & "\Exported Values.txt"
On Error GoTo EndMacro:
FNum = FreeFile
StartRow = 1
EndRow = ActiveSheet.Cells(ActiveSheet.Rows.Count, "A").End(xlUp).Row
Open fName For Output Access Write As #FNum
For RowNdx = StartRow To EndRow
WholeLine = ""
WholeLine = WholeLine & IIf(MsgBox("FFSU = Yes, MCOU = No", vbYesNo) = vbYes, "FFSU", "MCOU") 'Field 1
WholeLine = WholeLine & UCase(InputBox("2 letter State name?")) 'Field 2
WholeLine = WholeLine & Right("00000000000" & Replace(Cells(RowNdx, "A").Text, "-", ""), 11) 'Field 3
WholeLine = WholeLine & Cells(RowNdx, "B").Text 'Field 4 - 1 digit quarter
WholeLine = WholeLine & Cells(RowNdx, "C").Text 'Field 5 - 4 digit year
WholeLine = WholeLine & Right(" " & Cells(RowNdx, "D").Text, 11) 'Field 6 Text like SYMBICORT TOPROL XL
WholeLine = WholeLine & Format(Cells(RowNdx, "E").Value, "00000.0000000") 'Field 7 Text like 00002.550200 00216.510000
WholeLine = WholeLine & Format(Cells(RowNdx, "F").Value, "00000000000.00") 'Field 8 Text like 00000000954.00 00000000064.00
WholeLine = WholeLine & Format(Cells(RowNdx, "G").Value, "0000000000.00") 'Field 9 Text like 0000006719.59 0000000163.21
WholeLine = WholeLine & Format(Cells(RowNdx, "H").Value, "00000000") 'Field 10 Text like 00000032 00000001
WholeLine = WholeLine & Format(Cells(RowNdx, "I").Value, "0000000000.00") 'Field 11 Text like 0000010316.32 0000000207.19
WholeLine = WholeLine & Format(Cells(RowNdx, "J").Value, "0000000000.00") 'Field 12 Text like 0000000000.00 0000000000.00
WholeLine = WholeLine & Format(Cells(RowNdx, "K").Value, "0000000000.00") 'Field 13 Text like 00000010316.32 00000000880.41
Print #FNum, WholeLine
Next RowNdx
EndMacro:
On Error GoTo 0
Close #FNum
End Sub