简体   繁体   English

如何使用批处理文件将一个Excel工作表中的数据复制到另一个Excel工作表中

[英]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.

相关问题 如何使用js将文件从一个文件夹复制到另一个文件夹 - How to copy the file from one folder to another using js 如何使用PEL将EXIF信息从一个文件复制到另一个文件? - How to copy EXIF information from one file to another using PEL? 如何使用 PHP 将文件从一个目录复制到另一个目录? - How to copy a file from one directory to another using PHP? 如何将文件从一个文件夹复制到另一个 - How to Copy the File from one Folder to another 使用PHPExcel复制剪切并将行集从一个位置粘贴到Excel工作表中的另一个位置 - Copy Cut and Paste the set of rows from one place to other in a excel sheet using PHPExcel 可以使用laravel excel将数据从一张excel表格导入到多个表吗? - Is it possible to import data to multiple tables from one excel sheet using laravel excel? 如何使用PHPExcel将多个HTML表单数据添加到Excel工作表中 - How to add multiple HTML form data into Excel sheet using PHPExcel 如何使用PHP下载表数据作为excel表..? - How to Download table data as excel sheet using php..? 如何使用php中目录和文件的变量和数组将文件从一个目录复制到另一个目录? - How to Copy a file from one directory to another using variables and arrays for both directories and files in php? 如何使用php将多个文件从一个文件夹复制到另一个具有特定文件名的文件夹? - How to copy multiple files from one folder to another with specific file names using php?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM