Download HTML source

theta

Well-known Member
Joined
Jun 9, 2009
Messages
960
Hi all...

I have been reading through another thread but it does not yield the results I am after (although I do like the DOM suggestion).

http://www.mrexcel.com/forum/showthread.php?t=325775&page=2

I need to download Bloomberg currency rates from

http://www.bloomberg.com/personal-finance/calculators/currency-converter/

It has to be this source for audit purposes. At present this is a manual process, making the required selections one by one. If you look into the source, all of the rates are there - so would like to be able to pull the HTML source into excel then I can draw out the information required

If each line break in the HTML could be translated into a new ROW into excel that would be amazing.

I only need the CDATA table which is half way down the page source :

price['ADP:CUR'] = 120.666;
price['AED:CUR'] = 3.673;
price['AFN:CUR'] = 48.14;
etc...

Any ideas?
 
Last edited:

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
I have been reading through another thread but it does not yield the results I am after (although I do like the DOM suggestion).

http://www.mrexcel.com/forum/showthread.php?t=325775&page=2
That code is specific to the particular web site mentioned. I wouldn't expect it to work for Bloomberg, but a similar technique using DOM manipulation with the HTML Object Library should work. You probably need to retrieve the collection of scripts using GetElementsByTagName("SCRIPT") and then search for the script containing the exchange rate data using the Instr function etc.
 
Upvote 0

Forum statistics

Threads
1,222,143
Messages
6,164,178
Members
451,880
Latest member
2da

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