EXCEL VBA to scrape HTML Code

Gill Bates

New Member
Joined
Nov 8, 2017
Messages
2
Hello all,

I have a list of stocks with each assigned a 9 digit code, and I go to a website to pull their prices.

Below is the HTML code for a particular stock's evaluation where

I need to:
1. locate "td>QB<t/d>" (which represents the Bid price)
2. Pull the price, which appears to be the next line after the QB line
3. Pull the date

Is there a way to extract that 99.92 price + the dates under QB? I will need to do this process for over thousands of securities, and if I do this manually will definitely kill me.... thank you all for the help!!!

<
td><b>Bid Price</b></td>
<
td>QB</td>
<
td >99.92</td>
<
td > </td>
<
td nowrap> </td>
<
td nowrap>7 Nov 2017</td>
<
td >BAML Bid Evaluation</td>
<

td >J</td>
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,226,113
Messages
6,189,046
Members
453,522
Latest member
Seeker2025

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