Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v2) • Re: Updating to V2 - script for use with Microsoft Excel

$
0
0
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:

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



Viewing all articles
Browse latest Browse all 579

Trending Articles