Html VBA IE将值放入webage表单

Html VBA IE将值放入webage表单,html,vba,Html,Vba,我对VBA-HTML真的很陌生。我可以从html中获取ID并对其进行赋值,但这一次我失败了(错误消息91) 你能帮忙吗 <INPUT name=form:custId tabIndex=1 title=統一編號 class="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all inputCheck placeholdersjs placeholdersjs placeholdersjs" id=form:c

我对VBA-HTML真的很陌生。我可以从html中获取ID并对其进行赋值,但这一次我失败了(错误消息91)

你能帮忙吗

<INPUT name=form:custId tabIndex=1 title=統一編號 class="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all inputCheck placeholdersjs placeholdersjs placeholdersjs" id=form:custId role=textbox aria-disabled=false aria-readonly=false onfocus=checkCapsLock() onblur="$('.warning_box').hide();" type=text value=統一編號 jQuery1113006539849326140401="12" autocomplete="off" placeholder="統一編號" data-placeholder-bound="true" data-placeholder-value="統一編號" data-placeholder-active="true" data-placeholder-maxlength="10">

我的代码:

Sub firstb ()

Set ie = CreateObject("InternetExplorer.application") 
ie.Visible = True  
ie.Navigate("https://ebank.firstbank.com.tw/PTLB2C/index.xhtml")

Do While ie.Busy = True Or ie.ReadyState <> 4 DoEvents Loop

ie.Document.forms(0).all("form:custId").Value = "lmiltamy" ''(error message 91).

End Sub
Sub-firstb()
设置ie=CreateObject(“InternetExplorer.application”)
可见=真实
例如,导航(“https://ebank.firstbank.com.tw/PTLB2C/index.xhtml")
当ie.Busy=True或ie.ReadyState 4 DoEvents循环时执行
ie.Document.forms(0).all(“form:custId”).Value=“lmiltamy”(错误消息91)。
端接头

欢迎来到stackoverflow!我已经编辑了你的文章,使代码格式化并可见。请重新编辑您的帖子,使代码具有适当的换行符、缩进等。不要在注释中添加代码,因为这是不可能阅读的,以后访问您的问题的人可能会错过添加的细节,谢谢!嗨,罗伯西姆,谢谢你的帮助。我是Stackoverflow的新成员。仍然要弄清楚如何编辑和发布。没问题——只要确保在编辑(反标记)时不要删除标记,特别是对于HTML,因为它会使内容不可见。您也可以看到。输入的html真的是这样吗?您可以从该元素的页面复制粘贴html,并使用代码段工具via插入。另外,如果你用F8一行一行慢慢地执行代码,错误还会发生吗?我添加了一张html的照片,并提供了网页的链接,谢谢你的帮助^^