excel_com_分段导出文本

 
F12::
;~ Excel - constants 
;~ The parameter 4 used in the End property is used to specify where to move the cursor. The Excel defined constants are xlUp, xlDown, xlToRight, and xlToLeft. From the Object Browser in Excel the corresponding values are -4162, -4121, -4161, and -4159. I do not know where the value of 4 comes from, but it does work.



xlUp= -4162
xlDown=-4121	
xlToRight= -4161
xlToLeft= -4159


excel := ComObjActive("Excel.Application") ; 创建Excel 对象
workBook  := excel.ActiveWorkbook  ; 当前工作簿
currentSheet := excel.ActiveSheet ; 当前工作表
Sheet1:=excel.Worksheets[1]
;~ cell := excel.ActiveCell ; 当前单元格

zonghangshu := Sheet1.Range("A65536").End(xlUp).Row
meigewenjianhangshu:= 500
Wenjianshu := Ceil(zonghangshu / meigewenjianhangshu)
MsgBox %Wenjianshu%
excel.Quit


return
/*

    
    RowFrom = 2
    For iFile = 1 To Wenjianshu
            If iFile 

给TA捐赠
共{{data.count}}人
人已捐赠
其他教程

ahk错误在浏览器地址栏中不完全删除编码.

2020-3-26 14:19:18

其他教程

Excel数据拆分发邮件

2020-3-27 20:26:21

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索