I tried to adapt my script, but the app shows the following message (lines 7 and 17) "Error: This value of type "Worksheet" has no method named "Call"."
Here is my script:
Here is my script:
CODE:
#HotIf WinExist('ahk_exe EXCEL.exe')
F3:: {
If 'OK' = (loopCount := InputBox('Enter the loop count', 'Number of loops:', 'w300 h75')).Result {
c := ComObjActive('Excel.Application').workbooks("MYREPORT 2024.xlsm").sheets("plan3")
Loop loopCount.Value {
Sleep 1500
SendInput c(A_Index, 2).Text
Sleep 250
SendInput "{Tab}"
Sleep 250
SendInput "{End}"
Sleep 250
SendInput "{Tab}"
Sleep 250
SendInput "{Space}"
Sleep 1500
SendInput c(A_Index, 3).Text
Sleep 2500
SendInput "{Enter}"
MsgBox 'Check your data.', 'Message:', 'Iconi'
}
}
MsgBox 'End.', 'Message:', 'Iconi'
ExitApp
}
#HotIf
Esc::ExitApp
Statistics: Posted by Jeff_f_f — Today, 09:53