首页 | 本学科首页   官方微博 | 高级检索  
     

VBA在多Excel工作薄数据汇总的应用
引用本文:徐志伟,孙航.VBA在多Excel工作薄数据汇总的应用[J].电子设计工程,2011,19(10):39-41,44.
作者姓名:徐志伟  孙航
作者单位:1. 陕西铁路工程职业技术学院,陕西,渭南,714000
2. 开封大学,河南,开封,475000
摘    要:利用Excel进行数据处理分析时,常需要对大量独立的具有相同表结构的原始工作薄中的数据进行汇总合并到一个工作薄的指定工作表中。通过VBA编程调用Excel对象在不打开源工作薄的情况下,将指定文件夹中所有工作薄中的某一工作表的数据汇总合并,并添加工作薄文件名称字段表明数据来源。可以将需要一天或几天重复性的打开-复制-粘贴等操作才能完成的任务,缩短为几分钟完成。

关 键 词:VBA  相同文件结构  多工作薄  数据汇总

Application of VBA in consolidating multiple spreadsheets
XU Zhi-wei,SUN Han.Application of VBA in consolidating multiple spreadsheets[J].Electronic Design Engineering,2011,19(10):39-41,44.
Authors:XU Zhi-wei  SUN Han
Affiliation:1.ShaanXi Railway Institute,Weinan 714000,China;2.Kaifeng University,Kaifeng 475000,China)
Abstract:Using Excel for data processing and analysis,the data in a large number of spreadsheets in many separated workbook with one file structure need to be consolidated into one worksheet.This paper mainly discussed a method that how VBA programming create a Microsoft Excel Object to consolidate the spreadsheets in a specified folder without opening them,and add a field to help identify the source of the data.The work usually need one or more days to complete by manually open-copy-paste,reduced to a few minutes to complete.
Keywords:VBA  file structure  multiple spreadsheets  consolidate data
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号