+ Reply to Thread
Results 1 to 3 of 3

Yahoo Realtime Data into specific cells

Hybrid View

  1. #1
    Registered User
    Join Date
    12-31-2012
    Location
    Florida
    MS-Off Ver
    Excel 2016 - 365
    Posts
    54

    Yahoo Realtime Data into specific cells

    I searched to see if there were any examples, but here I am and this is what I need to accomplish:

    I need to insert the current real time stock numbers into Worksheets("BackTest").Range("A2:G2") so that my worksheets can calculate the data up to the current time instead of waiting until 8 or 9PM at night, when Yahoo updates their history dB. This way, during trading hours, if there is a "BUY or SELL" flag that comes up, I can "BUY or "SELL" while the market is still open and not at 8PMish when the Yahoo information becomes available.

    Based on the 2007 version of Excel (Webservice does not work in 2007 version), The format will be the same as the Historical Stock data.

    - WorkBook = Stock_Program.xlsm
    - WorkSheet = Worksheets("BackTest").Range("A2:G2") (where the data goes)
    - StockSymbol = SettingsSheet.Range("E4")

    A1 through G1 are the Historical Data Column Names (Automatically populated)
    A2 = Date (Yahoo = "d2")
    B2 = Days Opening Stock Price (for that day) (Yahoo = "o")
    C2 = Days High Stock Price (for that day) (Yahoo = "h")
    D2 = Days Low Stock Price (for that day) (Yahoo = "g")
    E2 = Last Trade (Yahoo = l1)
    F2 = Current Stock Volume (Yahoo = "v")

    I will insert this macro into the code right after the Macro that clears the cells and inserts header in the first row and before the Macro that downloads and inserts the History stock history data into the worksheet starting at A3.

    The only other way I can figure out to do it is to insert a formula (hyperlink) into each cell, but you then have to click on each one to get the updated info.
    ... Example... (http://finance.yahoo.com/d/quotes.cs...E4&%22&f=l1%22)
    But that is not a doable solution.

    Any thoughts? Options?

    Thanks in advance,

    Don

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Yahoo Realtime Data into specific cells

    I created a video awhile ago that shows how to interact with Yahoo finance csv file. Maybe that might help
    https://www.youtube.com/watch?v=rLIwTYUgCpM

  3. #3
    Registered User
    Join Date
    12-31-2012
    Location
    Florida
    MS-Off Ver
    Excel 2016 - 365
    Posts
    54

    Re: Yahoo Realtime Data into specific cells

    JieJeen, the video uses Webservice as mentioned above I am working with Excel 2007

    Don

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Trying to extract number from realtime data.
    By Seacucumber in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-10-2012, 10:26 AM
  2. [SOLVED] Trying to get rows that contain specific data into a seperate tab, realtime.
    By Irishmatty513 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-31-2012, 04:40 PM
  3. Appologies for incomplete link - Realtime and intraday data from google & yahoo finance
    By Navin Agrawal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2012, 02:39 PM
  4. instant realtime data charting
    By dtvonly in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-07-2010, 06:06 AM
  5. realtime data formula issue
    By tcast in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-01-2008, 07:47 PM
  6. Realtime Data Update Sorting
    By devada1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2006, 10:30 AM
  7. extract data from a realtime updated cell
    By ALVESM in forum Excel General
    Replies: 4
    Last Post: 03-21-2005, 02:06 PM

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