Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Saving File
I have the following code Sub SaveAsCSV() ActiveWorkbook.SaveAs Filename = "\\Fiesta\Wg_memb_sec\Community Dividend\New Payments\Admin\Chq details\CommDiviChqs.csv", _ FileFormat:=xlCSVWindows, CreateBackup:=False ActiveWorkbook.Saved = True ActiveWorkbook.Close End Sub When I run the code, the file is saved in the right location but with the name False.csv. Can anybody help please. Thanks in advance Nick -- Nick S ------------------------------------------------------------------------ Nick S's Profile: http://www.excelforum.com/member.php...o&userid=16512 View this thread: http://www.excelforum.com/showthread...hreadid=479170 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Saving File
Hello NIck, Looks like a typo. You forgot tp put the colon after filename. FileName:="\\Fiesta\Wg_memb_sec\Community Dividend\New Payments\Admin\Chq details\CommDiviChqs.csv", _ Sincerely, Leith Ross -- Leith Ross ------------------------------------------------------------------------ Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465 View this thread: http://www.excelforum.com/showthread...hreadid=479170 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Saving File
In addition, you can replace these two lines
ActiveWorkbook.Saved = True ActiveWorkbook.Close with the much cleaner ActiveWorkbook.Close SaveChanges:=False -- Regards, Tom Ogilvy "Leith Ross" wrote in message ... Hello NIck, Looks like a typo. You forgot tp put the colon after filename. FileName:="\\Fiesta\Wg_memb_sec\Community Dividend\New Payments\Admin\Chq details\CommDiviChqs.csv", _ Sincerely, Leith Ross -- Leith Ross ------------------------------------------------------------------------ Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465 View this thread: http://www.excelforum.com/showthread...hreadid=479170 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Saving File
Thanks that was driving me nut -- Nick ----------------------------------------------------------------------- Nick S's Profile: http://www.excelforum.com/member.php...fo&userid=1651 View this thread: http://www.excelforum.com/showthread.php?threadid=47917 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Saving Excel 2007 file in 2003 creates very large file | Excel Discussion (Misc queries) | |||
Saving worksheet in new file with date AND cell value as file name | Excel Discussion (Misc queries) | |||
Excel should let me sort the file directory when saving a file | Excel Discussion (Misc queries) | |||
How do I stop Excel 2000 from saving file history from file that . | Excel Discussion (Misc queries) | |||
saving an excel file as an ASCII text file without delimiters | Excel Programming |