Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import multiple web pages 1

Status
Not open for further replies.

JPJeffery

Technical User
May 26, 2006
600
GB
I have 113 pages I want to import in to Excel (2010). To be more precise, they're two tables in 113 pages (they're golf scores hosted on a website that's closing down).

I know I can copy and paste then choose 'Refreshable Web Query' and run through the wizard but that's going to get boring very quickly.

I have the URLs of the pages though, so there must be a way of getting Excel to run off and get them for me (one score to one sheet)

This is one of the URLs:
The only part that changes is the ID number (so surprise there!). The two tables are the 'header' above the score table ('Date' etc.) and the score table itself.

JJ
[small][purple]Variables won't. Constants aren't[/purple]
There is no apostrophe in the plural of PC (or PST, or CPU, or HDD, or FDD, or photo, or breakfast...and so on)[/small]
 
Hi,

Turn on your macro recorded

Data > Get external data > Web... And drill down to your web site.

Use the mrker icons to select the data you want.

Since there's paging you'll see in the recorded code something like Page=1

You can assign page numbers in a loop.
 
An obvious solution (by which I mean, why the HELL didn't I think of that!).

:)

Thank you!

JJ
[small][purple]Variables won't. Constants aren't[/purple]
There is no apostrophe in the plural of PC (or PST, or CPU, or HDD, or FDD, or photo, or breakfast...and so on)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top