Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何使用excel vba在网页显示的弹出窗口的文本框中输入文本_Javascript_Jquery_Vba_Excel - Fatal编程技术网

Javascript 如何使用excel vba在网页显示的弹出窗口的文本框中输入文本

Javascript 如何使用excel vba在网页显示的弹出窗口的文本框中输入文本,javascript,jquery,vba,excel,Javascript,Jquery,Vba,Excel,使用Excel/VBA,我试图将文本输入到弹出窗口中显示的文本框中。下面是定义我需要访问的字段的代码: span class="ui-helper-hidden-accessible" role="status" aria-live="polite"/> input class="ui-autocomplete-input" id="RUItem" style="width: 100px;" type="text" autocomplete="off"/> 我尝试使用: ie.Do

使用Excel/VBA,我试图将文本输入到弹出窗口中显示的
文本框中。下面是定义我需要访问的字段的代码:

span class="ui-helper-hidden-accessible" role="status" aria-live="polite"/>
input class="ui-autocomplete-input" id="RUItem" style="width: 100px;" type="text" autocomplete="off"/>
我尝试使用:

ie.Document.getElementById("RUItem").Value = "some-value"
但我得到一个错误,说:

所需对象


所以我知道我没有正确地访问它。如何将文本输入辅助窗口?

您可能需要使用windows api?请查看对此问题的公认答案。这可能很有用。我使用autoit应用程序完成了这项工作,但没有使用VBA。您可能需要使用windows api?请查看对此的公认答案。这可能很有用。我用autoit应用程序完成了这项工作,但不是VBA。