LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default save as version 2003 problem

I'm working in vba in Access to create and save an Excel file. All's good
except that one of the workstations this is runnign on is using Office 2007.
I'm developing in 2003 and all the other workstatiosn they have are using
2003. It's very important that the files be saved in 2003 format.

When I do this, it runs fine and saves as 97/95

objExcelBk.SaveAs sTempPath & sExcelFileName, xlExcel9795 ','56 = xl
2000/2003

I read online in a forum post that "56" is the correct code for saving as
2003 but that's when the code is written in 2007. I cannot find a constant
in the list of constants in 2003 to save as 2003 (like xlExcel0003 for
example) and the "56" below causes the code to crash.

objExcelBk.SaveAs sTempPath & sExcelFileName, 56

I may end up having to use xlExcel9795 and I think that will be okay but
how do I code this to ensure saving as 2003 format while writing the code in
2003?

Thanks,

Keith


 
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
Save Excel 2003 to earlier version Gayle Excel Discussion (Misc queries) 4 February 17th 10 06:32 PM
Excel 2003 save as earlier version Gayle Excel Discussion (Misc queries) 6 February 17th 10 06:31 PM
How do I save an Excel 97-2003 version or 2007 version for Mac 200 Bronigal Excel Discussion (Misc queries) 1 December 7th 09 08:04 AM
new 2007 compatibliity - can't save to 2003 version shara New Users to Excel 5 April 17th 09 04:53 AM
How do I save a 2003 version macro in separate folder for other u. notanITperson Excel Programming 1 February 18th 05 03:17 AM


All times are GMT +1. The time now is 06:58 AM.

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

About Us

"It's about Microsoft Excel"