将Excel中的数据整理到另一Excel
来源:互联网 发布:mysql压缩包怎么安装 编辑:程序博客网 时间:2024/05/17 22:06
Sub paste() Dim fs, folder, files Dim errPath As String Dim filePath As String Dim iCnt As Integer Dim iLine As Long Dim flg As Boolean Dim temp iCnt = Cells(1, 2) errPath = Cells(2, 2) filePath = Cells(3, 2) Workbooks.Open filePath iLine = 0 Set fs = CreateObject("Scripting.FileSystemObject") Set folder = fs.getfolder(errPath) For i = 1 To iCnt flg = False iLine = iLine + 1 Cells(iLine, 1) = "Title" For Each f In folder.files temp = Split(f.Name, ".") If Right(temp(0), 3) = Format(i * 2, "000") Then iLine = iLine + 1 Cells(iLine, 1) = f.Name flg = True Open f.path For Input As #1 Do Until EOF(1) Line Input #1, strline temp = Split(strline, ",") iLine = iLine + 1 For j = 0 To UBound(temp) Cells(iLine, j + 1) = Replace(temp(j), Chr(34), "") Next j Loop Close #1 End If Next If flg = False Then iLine = iLine + 1 Cells(iLine, 1) = "No File" iLine = iLine + 5 End If Next i End Sub
0 0
- 将Excel中的数据整理到另一Excel
- excel中的数据整理到mysql数据库
- 将DataGridView中的数据导出到Excel
- 将EXCEL中的数据导入到Mysql
- 将Excel中的数据导入到Sqlserver
- EXCEL:将SQL SERVER中的数据导入到 EXCEL
- 如何将dataSet中的数据导入到Excel文件(*.xls)整理
- 将表格中的数据导出到EXCEL表中的
- 将DataGrieView中的数据导入到Excel中的函数
- 将数据导出到excel
- 将TDBGridEh中的数据导出到Excel中
- 将EXCEL中的数据导入到DataSet中
- 将MsFlexGrid中的数据导出到Excel中
- 将ORACLE数据库的数据倒入到EXCEL中的方法
- 如何将DataGrid中的数据导出到Excel文件中
- 将EXCEL 数据导入到ACCESS中的代码
- 怎样将Excel中的数据导入到SQLServer2000数据库中
- 怎样将Excel中的数据导入到SQLServer2000数据库中
- c语言 的 内存格局分析
- Google Play In-app Billing 踩过的那些坑
- Linux下安装SVN
- C++语言中的编译预处理
- 怎么投资私募宝产品
- 将Excel中的数据整理到另一Excel
- 轻松记住大端小端的含义(附对大端和小端的解释)
- 使用AIDL实现进程间的通信
- Android通过Broadcast(广播)实现开机自启动
- Android开机动画、logo、字样的定制过程
- Xcode添加静态库以及编译选项配置常见问题
- 将状态栏的颜色更改为白色
- 设置存储过程权限
- Safari 前端开发调试 iOS 完美解决方案