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

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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