Hello guys.
I need to download a table daily, the code even works, but it copies the table in a disorganized way. I would like it to copy the data in order, as on the website.
Sub ExtrairTabelaDaPagina()
Dim driver As New ChromeDriver
With driver
.Start
.Get "https://www2.bmf.com.br/pages/porta...regao-ptBR.asp?Data=20/02/2020&Mercadoria=IND"
.Window.Maximize
.FindElementById("principal").AsTable.ToExcel Plan1.range("a1")
End With
End Sub
I need to download a table daily, the code even works, but it copies the table in a disorganized way. I would like it to copy the data in order, as on the website.
Sub ExtrairTabelaDaPagina()
Dim driver As New ChromeDriver
With driver
.Start
.Get "https://www2.bmf.com.br/pages/porta...regao-ptBR.asp?Data=20/02/2020&Mercadoria=IND"
.Window.Maximize
.FindElementById("principal").AsTable.ToExcel Plan1.range("a1")
End With
End Sub