Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am getting the following error warning when opening an .xls file generated using 'CarlosAg.ExcelXmlWriter.dll' in Excel 2007:

The file you are trying to open,'', 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. Do you want to open the file now?

Any ideas how I can resolve this?

share|improve this question
    
Related: superuser.com/questions/66195 –  Mehper C. Palavuzlar Jun 16 '10 at 13:37

4 Answers 4

There's a Microsoft discussion of the issue which provides some mechanisms to resolve:

http://blogs.msdn.com/b/vsofficedeveloper/archive/2008/03/11/excel-2007-extension-warning.aspx

share|improve this answer

It seems that the .xls file (Microsoft Excel 97-2003 format) is actually an .xlsx file (Microsoft Excel 2007 format). Changing the file extension from .xls to .xlsx should clear the warning message.

share|improve this answer

In your VBA code, use this command:

Application.DisplayAlerts = False

this will suppress any such warnings.

share|improve this answer

It's xml spreadsheet 2003 format, the correct extension is xml which is why it does not need excel installed.

share|improve this answer
    
I think you meant to say .xlsx, not .xml? –  SamB Jan 13 at 5:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.