+ Reply to Thread
Results 1 to 1 of 1

Yahoo Chart Into Excel

  1. #1
    Forum Contributor
    Join Date
    10-28-2003
    Location
    Italy
    MS-Off Ver
    11
    Posts
    127

    Yahoo Chart Into Excel

    .... dubt on this code
    but why the macro not paste the chart intothe sheet???????

    Sub Tester()
    Dim ie As New InternetExplorer
    sURL = "http://finance.yahoo.com/"
    ie.navigate sURL
    Do While ie.readyState <> READYSTATE_COMPLETE
    Loop
    ie.Visible = True
    Base01 = "http://ichart.yahoo.com/z?s="
    Base02 = "AAA"
    LastRow = Cells(Cells.Rows.Count, 1).End(xlUp).Row
    For i = 1 To LastRow
    sURL = Base01 & Cells(i, 1) & Base02
    GetImage sURL, ie
    Stop
    Next i
    ie.Quit
    Set ie = Nothing
    End Sub
    Sub GetImage(sURL, ie)
    ie.navigate sURL
    Do While ie.readyState <> READYSTATE_COMPLETE
    Loop
    End Sub

  2. #2
    Forum Contributor
    Join Date
    12-11-2004
    MS-Off Ver
    2007
    Posts
    137
    Hello Sal21

    you could try this macro to insert a web chart into the Sheet

    ActiveSheet.Pictures.Insert("http://ichart.finance.yahoo.com/b?s=%5EIXIC").Select


    regards ,
    michel

+ 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