I cant seem to find the ID when i inspect the source of the website "rofex.primary.ventures". All i want to do is grab all the data below the Ult column and put it into an excel worksheet. Ive used firefox because it shows the HTLM code in a nicer way but i would like to scrape it from chrome using an excel Macro. How would i do this?
Sub Rofex()
Dim appIE As Object
Set appIE = CreateObject("internetexplorer.application")
With appIE
.Navigate "https://rofex.primary.ventures"
.Visible = True
End With
Do While appIE.Busy
DoEvents
Loop
Set allRowOfData = appIE.document.getElementById("rx:DO:2019:01:a")
Dim myValue As String: myValue = allRowOfData.Cells(6).innerHTML
appIE.Quit
Set appIE = Nothing
Range("A1").Value = myValue
End Sub
This is what i have but get all types of errors, im new to coding, needless to say. Thank you!
Use the available API. There is a csv format xmlhttp response that you can target to extract this info. Note that the results are in 1000s so, for example,
DOEne19
isult
37,960
and the output is37.96
.Otherwise, you can download as csv as then use loop column A and use split to extract the columns of interest. Download part shown below.