按键精灵调用文件时,提示ActiveX component can't create object 怎么解决
// A:调用系统文件查找插件,并保存查找到的文件路径到 filepath 变量中 filepath = Plugin.File.SelectFile() //输入框文本内容被重新赋值 给变量 filepath 路径 = filepath //B打开表格 call Plugin.Office.OpenXls(路径) Delay 400 //C设置循环次数For i = 2 To 1000 Delay 50 //第几工作表,第几行,第几列 TracePrint i Text = Plugin.Office.ReadXls(1, i, 1) Delay 50 If Text = "" Then TracePrint "没有内容,空" call Plugin.Office.CloseXls() Delay 50 ExitScript Else TracePrint "提取的行标不为空,开始操作" Delay 50 End Ifnext
// A:调用系统文件查找插件,并保存查找到的文件路径到 filepath 变量中 filepath = Plugin.File.SelectFile() //输入框文本内容被重新赋值 给变量 filepath 路径 = filepath //B打开表格 call Plugin.Office.OpenXls(路径) Delay 400 //C设置循环次数For i = 2 To 1000 Delay 50 //第几工作表,第几行,第几列 TracePrint i Text = Plugin.Office.ReadXls(1, i, 1) Delay 50 If Text = "" Then TracePrint "没有内容,空" call Plugin.Office.CloseXls() Delay 50 ExitScript Else TracePrint "提取的行标不为空,开始操作" Delay 50 End Ifnext