简体   繁体   English

打开多个excel文件自动化

[英]Opening Multiple excel files automation

I have thousands of macro enabled excel files.我有数千个启用宏的 Excel 文件。 I have to open each one and generate an output file (clicking one button).我必须打开每个文件并生成一个输出文件(单击一个按钮)。

Can someone help me to automate this, please?有人可以帮我自动化这个吗?

Have an centralised macro sheet which has two columns one should contains all macro workbookname and another column with function Name to control all macros .有一个集中的宏表,其中有两列,其中一列应包含所有宏工作簿名称,另一列包含函数名称以控制所有宏。 pass input as SheetName and Macro name Example:将输入作为 SheetName 和宏名称传递示例:

Application.Run ("'Analytics macro S17.xlsm'!getdata") Application.Run ("'Analytics macro S17.xlsm'!getdata")

Just Iterate the above lines to take different macro sheet name with operations.只需迭代以上几行即可使用不同的宏表名称进行操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM