PC Review


Reply
Thread Tools Rate Thread

1004 error when saving as CSV

 
 
=?Utf-8?B?THAxMg==?=
Guest
Posts: n/a
 
      14th Nov 2007
Hi All,
When running this code: ActiveWorkbook.SaveAs Filename:=fname,
FileFormat:=6, CreateBackup:=False on office 2007 Im getting the 1004 error.
On office 2003 it rus perfectly.
Even if i change the FileFormat=xlCSV, still same reaction.
Any thoughts?
Thanks a lot in advance
 
Reply With Quote
 
 
 
 
=?Utf-8?B?THAxMg==?=
Guest
Posts: n/a
 
      14th Nov 2007
One addition....
I see that the problem is with the path.
The fname variable is based on path + name: c:/as/sd/filename.
When I change the fname to filename' the code is running perfect and save
the csv file in the default folder.
Again in excel 2003 it runs perfect as is. the problem is in office 2007 only.
thanks again

"Lp12" wrote:

> Hi All,
> When running this code: ActiveWorkbook.SaveAs Filename:=fname,
> FileFormat:=6, CreateBackup:=False on office 2007 Im getting the 1004 error.
> On office 2003 it rus perfectly.
> Even if i change the FileFormat=xlCSV, still same reaction.
> Any thoughts?
> Thanks a lot in advance

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
run time error 1004 general odbc error excel 2003 vba =?Utf-8?B?TWVudG9z?= Microsoft Excel Programming 5 24th Jan 2011 02:56 PM
Saving files to Sharepoint site: error 1004 (can't save file) Harry Microsoft Excel Programming 2 23rd Mar 2010 07:07 PM
Error 1004 opening workbook 1004 WembleyBear Microsoft Excel Programming 2 30th Nov 2009 01:33 PM
Error when cell A1 is not active and xlInsideVertical border formatthrowing error 1004 sbitaxi@gmail.com Microsoft Excel Programming 7 7th Aug 2008 08:43 PM
RunTime Error 1004 when setting a series' error bars in Excel 2007 Steve Tummey Microsoft Excel Crashes 0 6th Feb 2008 01:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:13 PM.