The below sample code is something I wrote for someone on another forum, the problem is that the Excel Web Data import doesn't work in dynamically built tables - built with JavaScript rather than being in the source of the document (as far as I can tell anyway).
The OP was trying to capture the leader board info from the PGA Tour website http://www.pga.com/openchampionship/scoring/leaderboard and the data import he had previously used had stopped working as the website design had changed. The leader board is created in the browser from javascript which periodically updates, the actual source of the data for the leaderboard is here:
http://data.pga.com/jsonp/event/open...aderboard.json
As you can see the data is in the form of a JSON object in a Javascript call back wrapper - JSON is extremely widely used on the web and allows storing complex data structures in a string, a single row of the above with some formatting applied, looks like this: http://pastebin.com/raw.php?i=khp1Ag3k
To extract this data and build a table that can be used in Excel, the JSON needs to be parsed - there is no built in library for reading JSON in Excel. The most simple way I have ever found of doing this is here: http://stackoverflow.com/questions/6...n-in-excel-vba
The above uses the Microsoft Script Control which can run JScript and return the values/objects of Jscript functions to VBA.
The below is the code that builds a table from the PGA JSON object and puts it into a sheet in Excel. The code is based on the code on SO, but adapted to work for this scenario. For the below to run you need to add a reference to Microsoft Script Control 1.0
I'm pretty sure that there must be other useful applications of this library - but I can't think of any off the top of my head 
Hope this helps someone
Cheers
Kyle
Bookmarks