+ Reply to Thread
Results 1 to 3 of 3

Macro to extract table data from website into my excel file

  1. #1
    Registered User
    Join Date
    11-24-2012
    Location
    bucharest
    MS-Off Ver
    Excel 2003
    Posts
    5

    Post Macro to extract table data from website into my excel file

    Hi.
    I am trying to construct a MACRO that will get data from a WEBSITE and put it to my excel file. But, that table data from website has 3 option (team, year and date) and want fisrt to ask me what years and what day before copying table and paste (as text) into my excel file.
    I am using excel 2003.


    Here is the link from where i want to extract data : http://www.statto.com/football/stats...011-2012/table

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Macro to extract table data from website into my excel file

    Hi,

    Run your browser and change the league and date manually and see the URL change.
    Then in your code change the URL string you use in your VBA to open the page.

    See if that helps.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    11-24-2012
    Location
    bucharest
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Macro to extract table data from website into my excel file

    Here is how my macro looks like:

    Please Login or Register  to view this content.
    Copy data from URL corectly, but when paste change scores (0-3) into DATE format
    Last edited by JBeaucaire; 12-31-2012 at 02:24 AM. Reason: Added code tags, as per forum rules. Don't forget!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1