从命令行创建Excel文件 [英] Create Excel file from command line

查看:104
本文介绍了从命令行创建Excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过命令行创建新的Excel文件?

Is there any way to create a new Excel file from command line?

推荐答案

如果您需要创建Excel文件总是一样的,您可以手动创建模板,然后随意创建新文件,例如...

If the Excel files you need to create are always the same, you can create a template manually, then create new files at will with something like...

copy template.xlsx myNewSpreadsheet.xlsx

如果您需要创建内容不同的文件,建议从David提出的powershell解决方案。

If you need to create files with content that varies, I suggest starting with the powershell solution proposed by David.

这篇关于从命令行创建Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆