Sub Creat_Txt_File()
mypath = Application.ActiveWorkbook.Path & "" & [A1] & ""
myfile = mypath & "FR2900 0000433608__" & Format(Now, "mm-dd-yy") & ".txt"
If Dir(mypath, vbDirectory) = vbNullString Then MkDir mypath
If Dir(myfile) <> "" Then Kill myfile ' deletes file if it exists
For r = 1 To Range("A65536").End(xlUp).Row
For c = 1 To Cells(r, 256).End(xlToLeft).Column
data = data & Cells(r, c) & vbTab
Next c
data = data & vbCr
Next r
Open myfile For Append As #1
Print #1 , data
Close #1
data = ""
End Sub