convert xls to xlsm using excelcnv.exe

蓝咒 提交于 2019-12-06 01:04:33

Unfortunately, no, you can't do this with excelcnv.exe as it requires a file name. It would be wonky to name all your .xls files as .xlsm and then go through 1 by 1 to figure out which ones don't have macros.

Based on your comments, you've tried using OFC.exe, which is a much better way of going about this for what you're looking for. We should focus efforts on that instead. What exactly is the error you are receiving and how are you configuring your .INI file? (see http://blogs.msdn.com/b/ericwhite/archive/2008/09/19/bulk-convert-doc-to-docx.aspx for an example).

You have to use the Process class to run OFC.exe and then pass in the right command line arguments to point to your INI file.


EDIT: 2011-03-11: I guess if no more details are forthcoming to help troubleshoot this, I'll stick by the answer in the first paragraph as answering the OP's question: ...you can't do this with excelcnv.exe as it requires a file name.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!