转换大量的excel文件

我怎么能把很多'97 excel文件转换成'95。 我寻找其他解决scheme作为文件 – 另存为。

logging一个macros,并根据需要展开生成的VBA代码,例如打开给定文件夹中的所有.xls文件并将它们一个接一个地转换。等等可能不会提供最好的性能,但开发时间应该在1个小时左右减。

循环访问文件,并使用SaveAs方法与您select的fileformat相结合。

我发现这个苹果脚本:

set theFolder to choose folder with prompt "Choose the folder that contains your Excel files" tell application "Finder" to set theFiles to (files of theFolder) set fileCount to count theFiles repeat with i from 1 to fileCount set fName to text 1 thru -5 of ((name of item i of theFiles) as text) if ((name of item i of theFiles) as text) ends with ".xls" then set tName to (theFolder as text) & fName & ".xls" tell application "Microsoft Excel" activate open (item i of theFiles) as text tell active workbook save workbook as filename tName file format Excel7 file format with overwrite end tell close active workbook without saving end tell end if end repeat