J
JTF
here is my code to save the current worksheet as a text file
.....
Sheets("Transaction File").Select
ActiveWorkbook.SaveAs Filename:= _
"C:\UPLOAD\NCAS" & Format(Date, "yyyymmdd") & ".txt",
FileFormat:=xlTextPrinter, CreateBackup:=False
The problem is that when the code executes, the Transaction File
worksheet is renamed with whatever name is given to the file that is
being created. I need the Transaction File worksheet to remain named
Transaction File because the next time the code is run, it looks for
that worksheet.
How can I keep the code from changing the worksheet name? Thanks!!!!
.....
Sheets("Transaction File").Select
ActiveWorkbook.SaveAs Filename:= _
"C:\UPLOAD\NCAS" & Format(Date, "yyyymmdd") & ".txt",
FileFormat:=xlTextPrinter, CreateBackup:=False
The problem is that when the code executes, the Transaction File
worksheet is renamed with whatever name is given to the file that is
being created. I need the Transaction File worksheet to remain named
Transaction File because the next time the code is run, it looks for
that worksheet.
How can I keep the code from changing the worksheet name? Thanks!!!!