1. #1
    oilcountry99
    oilcountry99's Avatar Become A Pro!
    Join Date: 08-29-10
    Posts: 707
    Betpoints: 1094

    Excel Import MLB Lineups....please help

    I'd like to import the lineups from this link into excel.

    http://espn.go.com/fantasy/baseball/...every-game-mlb

    When I do an excel import of the link it leaves out all the projected lineups. Is there a way to get this data into excel?

    It seems as though the lineups are a separate link within the webpage.


    Thanks in advance.

  2. #2
    Waterstpub87
    Slan go foill
    Waterstpub87's Avatar Become A Pro!
    Join Date: 09-09-09
    Posts: 4,044
    Betpoints: 7292

    do you get a browser not updated error?

    If espn won't work, https://rotogrinders.com/lineups/mlb?site=fanduel is another site that had lineups.
    Last edited by Waterstpub87; 06-11-16 at 10:30 AM.

  3. #3
    oilcountry99
    oilcountry99's Avatar Become A Pro!
    Join Date: 08-29-10
    Posts: 707
    Betpoints: 1094

    No error, just doesn't bring the lineup data in, on matchups.

    How accurate is rotogrinders? I'll look into it thanks.

  4. #4
    Waterstpub87
    Slan go foill
    Waterstpub87's Avatar Become A Pro!
    Join Date: 09-09-09
    Posts: 4,044
    Betpoints: 7292

    no idea. Lineups come out too late for me.

  5. #5

  6. #6
    stevenash
    stevenash's Avatar Moderator
    Join Date: 01-17-11
    Posts: 62,661
    Betpoints: 32303

    My go to lineup site.
    West coast games are up 3 1/2 hours early tonight, but usually it's 3 hours early.

    http://mlbstartingnine.com/home.jsp

  7. #7
    oilcountry99
    oilcountry99's Avatar Become A Pro!
    Join Date: 08-29-10
    Posts: 707
    Betpoints: 1094

    evo34
    I use baseballpress to confirm lineups. I'm just trying to get an accurate lineup earlier in the day. I'm currently using baseballreference, then stumbled on the espn lineups which were much more accurate and I can get them sooner.

  8. #8
    jane2geo
    jane2geo's Avatar Become A Pro!
    Join Date: 04-28-10
    Posts: 93
    Betpoints: 3112

    Quote Originally Posted by oilcountry99 View Post
    I'd like to import the lineups from this link into excel.

    http://espn.go.com/fantasy/baseball/...every-game-mlb

    When I do an excel import of the link it leaves out all the projected lineups. Is there a way to get this data into excel?

    It seems as though the lineups are a separate link within the webpage.


    Thanks in advance.
    This VBA code will pull the Rockies lineup on today's page.
    You then could duplicate or manipulate as you need.
    If you PM your email I will send you a sample sheet.
    ===========
    Private Sub Refreash_Lineup_Click()

    'Option Explicit

    Dim f As Worksheet

    Set f = Sheets("lineupdata")
    With f.Range("A2:Eb560").Clear
    End With


    Dim objWeb As QueryTable
    Dim sWebTable As String
    'You have to count down the tables on the URL listed in your query
    'This example shows how to retrieve the 3rd table from the web page.
    sWebTable = 3
    'Sets the url to run the query and the destination in the excel file
    'You can change both to suit your needs


    Set objWeb = ActiveSheet.QueryTables.Add( _
    Connection:="URL;http://espn.go.com/fantasy/baseball/story/_/page/mlb_dailylineups/daily-lineups-fantasy-baseball-tips-every-mlb-game", _
    Destination:=Range("A2"))

    With objWeb


    .FieldNames = True
    .RowNumbers = False
    .FillAdjacentFormulas = False
    .PreserveFormatting = True
    .RefreshOnFileOpen = False
    .BackgroundQuery = True
    .RefreshStyle = xlInsertDeleteCells
    .SavePassword = False
    .SaveData = True 'was true 20120627
    .AdjustColumnWidth = True
    .RefreshPeriod = 0
    .WebSelectionType = xlSpecifiedTables
    '.WebFormatting = xlWebFormattingAll
    .WebTables = sWebTable
    .WebPreFormattedTextToColumns = True
    .WebConsecutiveDelimitersAsOne = True
    .WebSingleBlockTextImport = False
    .WebDisableDateRecognition = True
    .WebDisableRedirections = False
    .Refresh BackgroundQuery:=False ' was false


    End With
    Set objWeb = Nothing

    End Sub

  9. #9
    oilcountry99
    oilcountry99's Avatar Become A Pro!
    Join Date: 08-29-10
    Posts: 707
    Betpoints: 1094

    Quote Originally Posted by jane2geo View Post
    This VBA code will pull the Rockies lineup on today's page.
    You then could duplicate or manipulate as you need.
    If you PM your email I will send you a sample sheet.
    End Sub
    PM sent

Top