[AHK]将数组中内容填充到excel
来源:互联网 发布:一号店和淘宝开店 编辑:程序博客网 时间:2024/06/13 22:01
This simple function will put the data in an active Excel sheet starting at the range indicated.
案例一
; http://www.autohotkey.com/board/topic/56987-com-object-reference-autohotkey-v11/page-7#entry394713; http://www.autohotkey.com/board/topic/69033-basic-ahk-l-com-tutorial-for-excel/SafeArray := ComObjArray(12, 2, 2)SafeArray[0, 0] := 5SafeArray[0, 1] := 4SafeArray[1, 0] := 3SafeArray[1, 1] := 2x := ComObjCreate("Excel.Application")x.visible := truebook := x.workbooks.addx.Range("A1:B2").value := SafeArray
案例二
; http://www.autohotkey.com/board/topic/5 ... ntry394713; http://www.autohotkey.com/board/topic/6 ... for-excel/var := "<varContent>"SafeArray := ComObjArray(VT_VARIANT:=12,3,1)SafeArray[0,0] := 10SafeArray[1,0] := varSafeArray[2,0] := """text"""x := ComObjCreate("Excel.Application")x.visible := truebook := x.workbooks.addx.Range("A1:A3").value := SafeArray
函数化
Excel_Put("A1","June 22 12:00 PM","AB",1,2,3,4,5,6,7,8,9,0,11) ; could be variables instead of static values; Excel_Put(Range, timeLog, initLog, meatLog, meatwiLog, wifLog, adfLog, bwiLog, dmcdLog, icnLog, icsLog, prodisLog, rifLog)Excel_Put(rng, values*){Xl := ComObjActive("Excel.Application")for key, value in valuesXl.Range(rng).Offset(key-1,0).Value := value }
阅读全文
0 0
- [AHK]将数组中内容填充到excel
- 将文本中内容以列形式填充入excel
- 将datagrid中显示的内容导入到Excel中
- 将tableview中显示的内容导出到EXCEL中
- 将gridview的内容导出到excel中去
- 将gridview的内容导出到excel中去
- 将gridview的内容导出到excel中去
- 将gridview的内容导出到excel中去
- 将GridView的内容导出到Excel中(常见问题)
- 将gridview的内容导出到excel中去
- 将GridView的内容导出到Excel中
- C#将内容写出到Excel的表格中
- 将GridView的内容导出到Excel中
- 将excel中的内容写入到PDF中(java)
- 将excel表的 内容插入到 SQL server 中
- 怎样快速将excel表格内容转换到word中
- VB 将excel内容导出到指定文件中
- VBA_把Excel某一区域的内容读入到数组中/把数组的内容写入到Excel中
- 使用apache poi 实现Excel批量导入
- leetcode617. Merge Two Binary Trees
- 一个嵌入式课程设计
- 图谱
- java中int i 会出现i+1<i或者i-1>i吗
- [AHK]将数组中内容填充到excel
- GrrenDao简单实现
- Java使用内部类存放数据
- 【多线程】共享对象和数据的解决方案
- C/C++ 之 sizeof 操作符总结
- 日期操作类DateUtils
- 51Nod-1451-合法三角形
- 计算机网络(概述上)
- JSP中三种注释的区别