【发布时间】:2018-11-29 03:16:04
【问题描述】:
我想知道单击网页上的“发送到”按钮的最佳语法是什么。
这是目前为止的代码:
Option Explicit
Sub Search_PubMedandCochrane()
Dim IE As New SHDocVw.InternetExplorer
IE.Visible = True
IE.Navigate "https://www.ncbi.nlm.nih.gov/pubmed"
Do While IE.ReadyState <> READYSTATE_COMPLETE
Loop
Debug.Print IE.LocationName, IE.LocationURL
IE.Document.forms("EntrezForm").elements("term").Value = Range("B4")
IE.Document.forms("EntrezForm").elements("search").Click
End Sub
【问题讨论】:
标签: html excel vba web-scraping