SaveAs Macro Help?

  • Thread starter Thread starter NeuralNetwork
  • Start date Start date
N

NeuralNetwork

Can anyone help me debug this section of code?

today = Format(Now, "ddmmmyy")
ActiveWorkbook.SaveAs
Filename:="F:\folder\my_file_" & today & ".txt", FileFormat:=x1Text,
CreateBackup:=False

I'm stumped
 
Looks suspiciously like a 1 (one) instead of a l (letter L) in the
FileFormat constant.

Try, FileFormat:=xlText
Can anyone help me debug this section of code?

today = Format(Now, "ddmmmyy")
ActiveWorkbook.SaveAs
Filename:="F:\folder\my_file_" & today & ".txt", FileFormat:=x1Text,
CreateBackup:=False

I'm stumped

--

Cheers
Andy

http://www.andypope.info
 
Back
Top