UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Saving A Specific Excel Version, Office 2010    
 
   
rmd1401
post Apr 12 2012, 10:30 AM
Post #1

UtterAccess Addict
Posts: 123



OK. I am creating an excel file from a .xlt file.

I am doing this from MS Access 2010...and therefore, I am also using the MS Excel 2010 object model in the VBA.

I am trying to save as .xls filetype (97-2003) because a corporate system I upload it into, of course, does not know that MS Office 2007 came out 5 years ago.

I use the below:
CODE
wbXlWorkbook.SaveAs strInputFileName, 52


wbXlWorkbook being my MS Excel workbook object.

It is not saving as .xls. The system I interface it with spits an error. I always go back and save the file again as .xls, and it indicates it is currently in .xlsm (when opening says mismatch in extension/filetype warning).

I originally had trouble finding the right value to use for saving. I though '52' was the appropriate value to use with the .SaveAs method to get my desired result. Anyone know which value to use? 52 appears to be .xlsm, not .xls.

Thanks-
Go to the top of the page
 
+
ipisors
post Apr 12 2012, 10:55 AM
Post #2

UtterAccess Certified!
Posts: 6,930
From: Arizona, United States



Best page on this:

http://www.rondebruin.nl/saveas.htm
Go to the top of the page
 
+
rmd1401
post Apr 12 2012, 11:23 AM
Post #3

UtterAccess Addict
Posts: 123



Indeed, I needed '56' instead. Must have been on a slightly different site before, or misinterpreted.

Thanks for your help.
Go to the top of the page
 
+
ipisors
post Apr 12 2012, 11:42 AM
Post #4

UtterAccess Certified!
Posts: 6,930
From: Arizona, United States



Glad I could help (thanks Ron!)
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 22nd May 2013 - 06:00 AM