Macro For Web Query for multiple pages of information into on Excel Sheet

brownfest99

New Member
Joined
May 19, 2016
Messages
6
Hi all,

I am looking for a little macro help.

I am trying to import 10-20 pages of we information into a single excel sheet.

Baseball stats for fantasy. I love it and it keeps me busy during down time.

I am a beginner at code to say the least, but have a little experience.

Here is what i am trying to do.

Major League Leaderboards » 2016 » Batters » Custom Statistics | FanGraphs Baseball1_50

That is the link to the information I am trying to get, the highlighted RED part is the page number and number of entries in the table. Pages go from 1-9 but could also go a little higher.

I want to set up a macro that downloads all 9 (or more) of the pages into a single sheet in order.

I have been able to run a few different macros but cant seem to get the correct info. The table I am looking for is labeled as Table 12 according to the HTML code. (99.9%) sure of this.

Any and all help would be greatly appreciated.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
That might be what I'm looking for :)
 
Upvote 0

Forum statistics

Threads
1,215,518
Messages
6,125,291
Members
449,218
Latest member
Excel Master

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