введите описание изображения здесь Я действительно новичок в VBA-HTML. Я могу получить идентификатор из html и указать его значение, но мне не удалось это сделать (сообщение об ошибке 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