I'm trying to find a way around using IE in my VBA code to access my portfolios in finance.yahoo.com but I'm getting the same message using a soap/rest? format as I do when I open an IE window: "Some parts of this page is not supported on your current browser version. Please upgrade the browser to the latest." It looks like my new calls are being processed by IE also. Is that true? Is there a way around this?
I tried using Selenium to open Firefox but it isn't working with the current version of Firefox (67)
here's the code I'm using now:
Dim xmlhttp As new MSMXML2.XMLHTTP60
Dim WebPgDoc As New HTMLDocument
Dim objNode As object
With xmlhttp
.Open "GET", "https://finance.yahoo.com/portfolio/pf_14/view/view_18", False
.send
WebPgDoc.body.innerHTML = .responseText
End With
Set objNode = WebPgDoc.getElementsByTagName("div")
When I look at objNode(70).innertext it has the same error message and missing stock details as when I use code to open IE to open the portfolio .
Any ideas would be greatly appreciated.
Thanks