Hi,
I am running Office 2003 (in Access).
I need to convert a xlsx file to xls, this is my code:
ApXL is my Excel Application Object, and I have it open an Excel 2007/2010 file. It opens do to compatibility pack I've instailled.
based on this I wrote this code:
newFileName has a "xls" extention.
I result with a file formatted id 2007/2010, with xls extension.
Where am I going wrong?
TIA
I am running Office 2003 (in Access).
I need to convert a xlsx file to xls, this is my code:
Code:
ApXL.Workbooks.Open (strFilePath)
based on this I wrote this code:
Code:
ApXL.Application.DisplayAlerts = False
ApXL.Application.ActiveWorkbook.CheckCompatibility = False
ApXL.Application.ActiveWorkbook.SaveAs FileName:=newFileName, FileFormat:=xlExcel8
ApXL.Application.ActiveWorkbook.Close
ApXL.Application.DisplayAlerts = True
I result with a file formatted id 2007/2010, with xls extension.
Where am I going wrong?
TIA
Last edited: