Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2013, 01:01 PM
CGM3 CGM3 is offline Excel 2010 Not Recognizing Some FileFormat Values Windows XP Excel 2010 Not Recognizing Some FileFormat Values Office 2007
Advanced Beginner
Excel 2010 Not Recognizing Some FileFormat Values
 
Join Date: Oct 2009
Posts: 38
CGM3 is on a distinguished road
Unhappy Excel 2010 Not Recognizing Some FileFormat Values

I'm upgrading/converting old spreadsheets (mostly Excel 2000, but with some Quattro Pro) to Excel 2010, and in one of them I encounter Error 1004 (Method 'SaveAs' of object '_Workbook' failed) with these commands:



Code:
ActiveWorkbook.SaveAs FileName:=mname, FileFormat:=xlExcel9795, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False
Code:
ActiveWorkbook.SaveAs FileName:=sname, FileFormat:=xlDBF3, CreateBackup:=False
In both instances, I've traced the problem to the FileFormat specification (which, if eliminated, allows the method to work, albeit saving in the default file format). I was able to get the first line to work by replacing xlExcel9795 with xlExcel8 to save the workbook in Excel 97-2003 format, but I haven't been able to find a replacement/alternate for xlDBF3 (which I believe is dBase III).

Any suggestions as to why the FileFormat values (which are given in the online Excel Developer Help) don't work, or something I can use to save as a DBF3 file?
Reply With Quote
  #2  
Old 03-22-2013, 10:59 PM
macropod's Avatar
macropod macropod is offline Excel 2010 Not Recognizing Some FileFormat Values Windows 7 64bit Excel 2010 Not Recognizing Some FileFormat Values Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi CGM3,

Is there a particular reason you want to save in formats that in most respects died long ago? IIRC, to be able to do so, you'd need to install the relevant file converters, and I'm not even sure you can get them any more. If you don't see those formats listed as options in the File|SaveAs dialogue, you don't have the filters installed. The reason the values remain in the Excel vba specification is because someone might still have files in those formats (plus the filters to go with them) and needs to maintain something for, eg DbaseIII.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 03-23-2013, 09:47 AM
CGM3 CGM3 is offline Excel 2010 Not Recognizing Some FileFormat Values Windows XP Excel 2010 Not Recognizing Some FileFormat Values Office 2007
Advanced Beginner
Excel 2010 Not Recognizing Some FileFormat Values
 
Join Date: Oct 2009
Posts: 38
CGM3 is on a distinguished road
Default

As I said, these spreadsheets were originally done in Excel 2000, and both access a dBase III database and save as a DBF3 file (which I think is used to transfer data into another dBase III database). The company is installing Office 2010 as the new standard, and my project is to upgrade a number of workbooks (including translating some Quattro Pro stuff to Excel) and Access databases.

It's possible that the dBase files are to be transferred to Access, but I haven't had a chance to check with the people who use the spreadsheets. It's also conceivable that saving as text (possibly tab-separated or CSV format) would serve the same purpose.

I tracked down the Microsoft Visual Studio 2010 help site, which states that Excel 2010 does not save files in DBF3 or DBF4 format, so that pretty much settles that. Still, do you have any idea where I might go looking for file converters (it's always good to have options)?

Thanks for the timely response.
Reply With Quote
  #4  
Old 03-23-2013, 05:03 PM
macropod's Avatar
macropod macropod is offline Excel 2010 Not Recognizing Some FileFormat Values Windows 7 64bit Excel 2010 Not Recognizing Some FileFormat Values Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The last Excel version to support the DB3 format was Excel 2003. If you have that or an earlier version, you can run both on the same PC (but you don have to install the older one first). Alternatively, there are products that appear to work with Office 2007 (at least). See, for example:
http://xdbf.com/excel-2007-converter.html
http://download.cnet.com/DBF-to-XLS-...-10405779.html
http://www.brothersoft.com/xls-to-db...ter-71739.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 03-24-2013, 11:55 AM
CGM3 CGM3 is offline Excel 2010 Not Recognizing Some FileFormat Values Windows XP Excel 2010 Not Recognizing Some FileFormat Values Office 2007
Advanced Beginner
Excel 2010 Not Recognizing Some FileFormat Values
 
Join Date: Oct 2009
Posts: 38
CGM3 is on a distinguished road
Default

Thanks for the info, at least now I can offer alternatives to the users.

Unless anyone else has a response, I guess we can mark this matter as closed.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2010 Not Recognizing Some FileFormat Values Mailing: Reading values from Excel to Word Jamal NUMAN Excel 9 09-02-2011 02:08 AM
Excel 2010 Not Recognizing Some FileFormat Values [How To] Generate Alpha Numeric Values in Excel 2010 stnicholas81 Excel 1 07-25-2011 01:31 AM
How Do I Put Text Values Into A CSV That Excel Will Leave Along? eBob.com Excel 2 05-04-2011 07:01 AM
Word - Calculate and paste values from Excel sheet Augf87 Word 1 07-06-2009 10:26 AM
Not Recognizing Contacts cehdcs Outlook 0 02-06-2006 02:22 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:51 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft