一段网页代码如下:
<input class="pub_input" required="true" type="text" placeholder="(必填)" value="" key="取票人联系方式" regtype="notempty">
只有本站会员才能查看附件,请 登录
图片如上如何利用vb编写代码 在打开程序在框内输入想要的数据。
Sub Main()
Dim ie As Object
Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = True
ie.Navigate "https://www.
While ie.ReadyState <> 4 Or ie.Busy = True
DoEvents
Wend
ie.Document.getElementById("buyNum").Value = "3"
End Sub
现在编写的程序如上