I have run a series of VBA code ( copy paste data from one sheet to another by match the column name, format the sheet) and now I need to save the sheet as text file.
This is the code I use:
This is the code I use:
VBA Code:
Sub savefile()
Sheets("Sheet1").Range("A1").Select
ChDir sheets("Main").Cells(3,2).value
ActiveWorkbook.SavesAs filename:= _
Sheets("Main").Cells(3,2).value+"799EBS.txt",fileformat:=xltext, _
create backup=false
end sub