I have following piece of code:
<font class="small">Code:</font><hr /><pre>
Set objExcel = CreateObject("Excel.Application")
Set objWorkBook = Nothing
Set objWorkSheet = Nothing
Set objExcel = Nothing </pre><hr />
It works perfect in Excel 2003, however, after running in Excel 2007 environment, I have an error message when I try to open it---"The file you are trying to open, 'abc.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file."