Excel 4.0 Macro - Save XLS in Excel 4.0 format?

C

CdSlc

We have an application written in Excel 4.0 Macro. Within our code we do a
"SAVE.AS (XLSName, 35)". The second parameter 35 indicates that the file
should be saved in "MS Excel 4.0 workbook" format. This Save command fails in
Excel 2007 but works fine in Excel 2003 and prior versions of Excel.

I found a blog http://blogs.msdn.com/excel/archive/2006/08/24/718786.aspx
that indicated Excel 2007 does not support saving an XLS file in Excel 4.0
format. Does anybody have any idea on what kind of workaround I can have for
this problem?

Thanks.
 
J

Jim Rech

There is no reason to save the file in XL4 format unless you plan on opening
it in Excel 4. So just use Excel 97-2003 format:

=SAVE.AS(XLSName,1)
 
C

CdSlc

Thanks a lot, Jim. You are a life-saver.

Jim Rech said:
There is no reason to save the file in XL4 format unless you plan on opening
it in Excel 4. So just use Excel 97-2003 format:

=SAVE.AS(XLSName,1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top