Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Run time Error '1004'

We have a macro that has typically been run in an older version of Excel that
now needs to be run in Excel 2007. Each time this is attempted we get "Run
time error '1004':" and it stops at the following line of code:

ActiveWorkbook.SaveAs Filename:= _
"P:\Freight Finance\Full Freight Allowed\dbfs\ffa.dbf" _
, FileFormat:=xlDBF4, CreateBackup:=False

Did something change in the current version of excel that would stop this
line from executing?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 533
Default Run time Error '1004'

Excel 2007 dropped support for that file format.

http://blogs.msdn.com/excel/archive/...24/718786.aspx

--
Jim
"D Huber" wrote in message
...
| We have a macro that has typically been run in an older version of Excel
that
| now needs to be run in Excel 2007. Each time this is attempted we get "Run
| time error '1004':" and it stops at the following line of code:
|
| ActiveWorkbook.SaveAs Filename:= _
| "P:\Freight Finance\Full Freight Allowed\dbfs\ffa.dbf" _
| , FileFormat:=xlDBF4, CreateBackup:=False
|
| Did something change in the current version of excel that would stop this
| line from executing?
|
| Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default Run time Error '1004'

Hi,

Looks like the saving of this file format is no longer supported in xl2007.
http://blogs.msdn.com/excel/archive/...24/718786.aspx

Have you tried to save the file manually to confirm this?

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"D Huber" wrote in message
...
We have a macro that has typically been run in an older version of Excel
that
now needs to be run in Excel 2007. Each time this is attempted we get "Run
time error '1004':" and it stops at the following line of code:

ActiveWorkbook.SaveAs Filename:= _
"P:\Freight Finance\Full Freight Allowed\dbfs\ffa.dbf" _
, FileFormat:=xlDBF4, CreateBackup:=False

Did something change in the current version of excel that would stop this
line from executing?

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Run time Error '1004'

On 13 Nov, 15:14, "Jim Rech" wrote:
Excel 2007 dropped support for that file format.

http://blogs.msdn.com/excel/archive/...24/718786.aspx


The sort of things you can do when you are an absolute monopolist and
users have no options but to buy your products anyway. Why bother
developing stable software or documenting its features clearly if
users are going to buy it anyway 'cos they have no real alternative?

Btw, the list is not complete: for instance, Excel 2007 no longer
supports application.filesearch ; an alternative is to use the dir()
function. If only Microsoft had at least bothered to communicate it!

Thanks, uncle Bill: may you spend all your billions in medicines :)


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
run time error 1004 general odbc error excel 2003 vba Mentos Excel Programming 5 January 24th 11 02:56 PM
Run Time Error 1004: Application or Object Defined Error BEEJAY Excel Programming 4 October 18th 06 04:19 PM
Run Time 1004 Error: Application or Object Difine Error BEEJAY Excel Programming 0 October 17th 06 10:45 PM
run-time error '1004': Application-defined or object-deifined error [email protected] Excel Programming 5 August 10th 05 09:39 PM
Run time error 1004 General ODCB Error Kevin Excel Programming 3 February 26th 05 12:51 PM


All times are GMT +1. The time now is 10:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"