Question : importing a table into access from website

Hi,

I'm trying to create a macro to import a table from a website.
The URL is:
http://cxa.marketwatch.com/finra/BondCenter/TRACEMarketAggregateStats.aspx

I'm only concerned about the first table that shows in the website.  Any idea on how to do this?   Thanks.

Answer : importing a table into access from website

This sample database will show you how to transfer information to and from the internet using the Web Browser control, Internet Explorer Automation and FTP :  www.thenelson.name/#WebAccess

Using the sample as a guide, navigate to your link.  Use
.Document.documentElement.innerText
to get the inner text. Note: the text of that table is:

All IssuesInvestment GradeHigh YieldConvertibles
Total Issues Traded5,9164,0791,545292
Advances3,1192,278717124
Declines2,2901,508636146
Unchanged1907110910
52 Week High62335624324
52 Week Low4013252
Dollar Volume *19,48412,4505,5051,529

Then use StringBetweenStrings to extract the information.

You can put the link you posted into the Input textbox and click the URL Look up button of the Webinput form in the sample database to view the webpage in several formats.

Random Solutions  
 
programming4us programming4us