LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Importing several web pages with macro/VBA?

I am attempting to import a large amount of webpages containing historical
odds on NBA games (about 4 years of data). The data is available on webpages
similar to this example:

http://archive.scoresandodds.com/grid_20070418.html

As you can see, the date is used in the URL, meaning it should be possible
to make a macro to automatically import each page from then until now into
Excel.
The problem is, however, complicated further due to these factors:

1) NBA odds aren't posted daily meaning some dates/URLs wont have any data
to import (for instance the next two pages/days in the sequence, that is
20070419.html and 20070420.html doesnt contain NBA data, while
20070421.html once again has the NBA table)

2) Each page also contains tables with data for others sports such as
baseball, but I only need data from the NBA table to be imported.

What is the easiest way to achieve this goal? Is it possible to make a
macro/VBA that loops through all dates since april 2007 and imports only the
NBA table and discards pages where no NBA table is present?

I am new to Excel and would appreciate any help and solutions you can
provide.

Thank you!

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Number of pages in worksheet doesn't match Print Preview pages delru Excel Discussion (Misc queries) 2 May 10th 10 10:08 PM
Importing Specific Data From Multiple Pages From The Web qcan Excel Programming 1 February 12th 08 09:51 PM
macro to print only pages that are filled in Tonso Excel Discussion (Misc queries) 0 July 6th 06 05:32 PM
Importing Yahoo Yellow Pages Into Excel Carol Harb New Users to Excel 1 October 16th 05 12:45 AM
Importing French (Canadian) format html pages Pierce Setting up and Configuration of Excel 0 December 1st 04 09:23 PM


All times are GMT +1. The time now is 09:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"