Hi All
First time Ever doing web scraping...
I am wanting to extract USD to ZAR exchange rate
Any suggestions on how to get the correct element and change values...
Untitled.png![]()
Sub Auto_Open() Dim URL As String, ExRt As Double, Obj As Object, Ele As Object URL = "https://www.xe.com" With CreateObject("InternetExplorer.Application") .Visible = True .navigate URL Do Until .ReadyState = 4: DoEvents: Loop Stop Set Obj = .document.getElementsByClassName("CurrencyInputWrapper-Djuqw fmFlNB") For Each Ele In Obj Debug.Print Ele.innerText Next Ele End With End Sub
Bookmarks