I want to be able to open Excel XML files in Excel but without assigning XML directly to Excel. There are lots of XML files that are not Excel files and I don't want to open all of them in Excel.

The file has proper header for opening in Excel but currently it does open Internet Explorer that asks me if I want to open the file with Excel, save or cancel. I just want to open it without two another annoying windows.

link|improve this question

39% accept rate
could you post a small example xml file with the headers you mention? – Stijn Sanders Mar 24 '10 at 19:31
feedback

4 Answers

Are you not able right click and choose "Open With" -> Excel ?

link|improve this answer
The idea is to start the files from command line not with the mouse. – Sorin Sbarnea Apr 12 '10 at 8:47
feedback

you can create a vbscript that suppresses messages from excel and opens your xml files directly in excel..

Set objExcel = CreateObject("Excel.Application") Set objWorkbook = objExcel.Workbooks.Open _ ("C:\Scripts\New_users.xls")

If you use these specifiers you will not be prompted about the file, read only, etc...

objExcel.Workbooks.(FileName, UpdateLinks, ReadOnly, Format, Password, WriteResPassword, IgnoreReadOnlyRecommended, Origin, Delimiter, Editable, Notify, Converter, AddToMRU)

link|improve this answer
feedback

You can register the xml filetype with Microsoft XML Editor. This will allow xml files to be opened directly with their registered application (e.g. Excel), as outlined in this answer from Stackoverflow.

link|improve this answer
feedback

Locally you could just do excel.exe ? Or did I understand something wrong?

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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