web scraping

midoan

New Member
Joined
Nov 24, 2018
Messages
2
Hello,
I need to do a macro when I type the site in a cell
it extract a table from that site to the rest of the row
and I need to do it repeatedly to the rest of the rows
till now I can only do it to one row only and it is msgbox

This is the code I used

If Target.Row = Range("cellone").Row And Target.Column = Range("cellone").Column Then
Dim IE As New InternetExplorer
IE.Visible = True
IE.navigate "" & Range("cellone").Value
Do
DoEvents
Loop Until IE.readyState = READYSTATE_COMPLETE
Dim doc As HTMLDocument


and I will attach the html code of the site






14147990dfd9ce55c353ad2d8af0afad896c882db83b354e6a42951ba9d701629c285a58.jpg
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
What is the address of the website?
What values/information/data do you want to extract from that website?
 
Upvote 0
the site is local so you wont be able to access it
I want to extract a table with html code Id <tr> the second one and the variables in it have the id <tr>
 
Upvote 0

Forum statistics

Threads
1,215,506
Messages
6,125,197
Members
449,214
Latest member
mr_ordinaryboy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top