Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 --- Message posted from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
x1Text
Change to xlText -- Regards Ron de Bruin (Win XP Pro SP-1 XL2000-2003) www.rondebruin.nl "NeuralNetwork" wrote in message ... 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 --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Looks suspiciously like a 1 (one) instead of a l (letter L) in the
FileFormat constant. Try, FileFormat:=xlText NeuralNetwork wrote: 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 --- Message posted from http://www.ExcelForum.com/ -- Cheers Andy http://www.andypope.info |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dont you want a _ after .SaveAs?
-----Original Message----- 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 --- Message posted from http://www.ExcelForum.com/ . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SaveAs in Macro | Excel Discussion (Misc queries) | |||
SaveAS macro Query | Excel Discussion (Misc queries) | |||
Saveas Macro | Excel Discussion (Misc queries) | |||
Error on SaveAs Macro | Excel Programming |