Hi,
Can anyone help me finish this macro? I have the following but can't get the innertext.
Thanks.![]()
Sub GetData() Dim htmlDoc As Object ' MSHTML.HTMLDocument Dim htmlBody As Object ' MSHTML.HTMLBody Dim htmlText As Object Dim xml As Object ' MSXML2.XMLHTTP60 Dim mystring$ Set xml = CreateObject("Microsoft.XMLHTTP") With xml .Open "POST", "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=review", False .send End With Set htmlDoc = CreateObject("htmlfile") Set htmlBody = htmlDoc.body Set htmlText = htmlDoc.getElementByID("Count") mystring = htmlText.innertext Debug.Print mystring End Sub
abousetta
Bookmarks