Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = True
ie.navigate "http://www.baidu.com"
ie.document.getElementById("KW").Value = "123456"
End Sub
...全文
712打赏收藏
vba在ie中给搜索框赋值问题?
如下代码,不可用,求大神指教。 Sub Main() Dim ie As Object Set ie = CreateObject("InternetExplorer.Application") ie.Visible = True ie.navigate "http://www.baidu.com" ie.document.getElementById("KW").Value = "123456" End Sub