。按键精灵读取EXCEL 数字前面有0的被忽略了
a=1For1000CallPlugin.Office.OpenXls("C:\测试.xls")//表格位置自己改Delay1000Text1=Plugin.Office...
a = 1
For 1000
Call Plugin.Office.OpenXls("C:\测试.xls")
//表格位置自己改
Delay 1000
Text1 = Plugin.Office.ReadXls(1, a, 1)
Text2 = Plugin.Office.ReadXls(1, a, 2)
SayString text1
KeyPress "Enter", 1
Delay 100
SayString text2
KeyPress "Enter", 1
Delay 100
Call Plugin.Office.CloseXls()
a = a + 1
Next
--------------
假设读取0101 可是出来确实101 0被删了。也不是都有都有0 展开
For 1000
Call Plugin.Office.OpenXls("C:\测试.xls")
//表格位置自己改
Delay 1000
Text1 = Plugin.Office.ReadXls(1, a, 1)
Text2 = Plugin.Office.ReadXls(1, a, 2)
SayString text1
KeyPress "Enter", 1
Delay 100
SayString text2
KeyPress "Enter", 1
Delay 100
Call Plugin.Office.CloseXls()
a = a + 1
Next
--------------
假设读取0101 可是出来确实101 0被删了。也不是都有都有0 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询