i'm trying to web e from the following website.
All I would need is the headline content which i thought I could grab from DIV CLASS = "Content". The code is returning blank and i'm a bit stumped. I'm used to just grabbing details from a table so maybe I am missing something.
Sub SmartCentreREIT()
Dim XMLPage As New MSXML2.XMLHTTP60
Dim HTMLDoc As New MSHTML.HTMLDocument
Dim List As MSHTML.IHTMLElementCollection
Dim Section As MSHTML.IHTMLElement
Dim HTMLRow As MSHTML.IHTMLElement
Dim ws As Worksheet
XMLPage.Open "GET", "https://newsquawk.com/zerohedge/", False
XMLPage.send
HTMLDoc.body.innerHTML = XMLPage.responseText
Set List = HTMLDoc.getElementsByClassName("headlines_container")
Set ws = Worksheets("Sheet1")
RowNum = 2
ColNum = 1
For Each Section In List
For Each HTMLRow In Section.getElementsByClassName("content")
With ws
.Cells(RowNum, ColNum) = HTMLRow.innerText
ColNum = ColNum + 1
End With
Next HTMLRow
RowNum = RowNum + 1
ColNum = 1
Next Section
End Sub