The code below runs successfully in both 2003 and 2010 environments. However, in the 2010 (Win 7 Pro) environment, it's necessary to open the xls file with Excel 2010 and then save it in the Excel 97-2003 format before it's accepted as an xls file in other applications, like an upload to a telephone calling service. What changes, if there are any, that can be included/added to my code that will get the xls file in the proper format when created from within the 2010 environment. As it is now, the fronend mde file is created in the 2003 environment.
Thanks,
Bill
Private Sub OutputToExcel()
Dim oExcel As Object
Dim oBook As Object
Dim oSheet As Object
'Start a new workbook in Excel
Set oExcel = CreateObject("Excel.Application")
Set oBook = oExcel.Workbooks.Add
Set oSheet = oBook.Worksheets(1)
'Transfer the array to the worksheet starting at cell A1 (Column headings already in 1st row of strBCarray)
oSheet.Range("A1").Resize(iRow, jCol).Value = strBCarray
'Save the Workbook and Quit Excel
Kill (XLSName)
oBook.SaveAs XLSName
oExcel.Quit
End Sub