How to automate converting Excel xls files to Excel xml format?

后端 未结 6 1776
渐次进展
渐次进展 2020-12-19 13:05

I have about 200 Excel files that are in standard Excel 2003 format.

I need them all to be saved as Excel xml - basically the same as opening each file and choosing

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-19 13:36

    You could adapt the code I posted here:

    http://www.atalasoft.com/cs/blogs/loufranco/archive/2008/04/01/loading-office-documents-in-net.aspx

    It shows how to save as PDF (Word is shown in the blog, but if you download the solution, it has code for Excel and PPT).

    You need to find the function for saving as the new format instead of exporting (probably the easiest way is to record a macro of yourself doing it in Excel and then looking at the code).

提交回复
热议问题