[英]How to copy data of one excel sheet in another using batch file
I have bunch of excel files with same name in two different folders, lets say folder A & B. 我在两个不同的文件夹中有许多同名的excel文件,可以说文件夹A和B。
Now i need to copy data of files in folder A to respective same name files in folder B but in different sheet and then rename the new sheet with current month and year. 现在,我需要将文件夹A中文件的数据复制到文件夹B中但在不同工作表中的各个同名文件中,然后使用当前月份和年份重命名新工作表。
I need to achieve this in batch file or php script. 我需要在批处理文件或php脚本中实现此目的。 Please can any one help.
请任何人帮忙。 Thanks
谢谢
Its very unlikely you will be able to do this easily with a batch script or in php because .xls files are compressed. 由于.xls文件已压缩,因此您极不可能使用批处理脚本或php轻松地执行此操作。
A much easier way to achieve what you need would be to use a VBA macro in one of your excel files as VBA supports all the operations you would need to achieve such a process. 实现所需功能的一种简单得多的方法是在一个excel文件中使用VBA宏,因为VBA支持实现此过程所需的所有操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.