Scrape Web Data by ID name

rawdata

New Member
Joined
Oct 12, 2009
Messages
31
I have some code that runs each month to scrape data from a website. This month, however, one of the tables was taken away, and now the data piece that I need resides all by itself - sitting like text on the web page.

I looked up the id name of the data piece that I want and it is id="lblTotalfees"

Using VB, is there a way to scan/search the page that I'm on for the abovementioned id and then scrape the figure next to it?

When I open up the source HTML here is what it looks like

HTML:
<td style="width:100px; text-align:right;"><span id="lblIPSass">$100.00</span></td>

Any help is greatly appreciated.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Watch MrExcel Video

Forum statistics

Threads
1,132,678
Messages
5,654,710
Members
418,149
Latest member
tjanok

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
Top