+ Reply to Thread
Results 1 to 3 of 3

Yahoo Stock Price Data / Limited version

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    Long Beach, WA
    MS-Off Ver
    Excel 2013
    Posts
    87

    Yahoo Stock Price Data / Limited version

    I have a VBA module that will pull multi-day HISTORICAL stock numbers from Yahoo and put them in a worksheet in table form by date. It's working fine.
    It clears the data in the worksheet each time it gets ready to reload it.

    What I'd like to do is put TODAY's current numbers Date / Open / High / Low / Current Price / Volume
    in the next row (which is now empty).

    So, in pseudo code:
    Get todays numbers
    Put them in lRowLast+1, cols A:F

    Where iRowLast is known.

    I can imagine editing the sub that I have to get this done but it's going to be more work than I think is warranted.
    So, I ask.
    Perhaps code that would do this or nearly do this is already lurking out there....

    Thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Yahoo Stock Price Data / Limited version

    If you've got code that gets the data you require but clears the current data, it shouldn't be that hard to stop it clearing the old stuff and work out where to put the new stuff.

    I suggest you post the code, ideally in its parent workbook.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    Long Beach, WA
    MS-Off Ver
    Excel 2013
    Posts
    87

    Re: Yahoo Stock Price Data / Limited version

    Please Login or Register  to view this content.
    This runs from a separate workbook and brings the data into the Data sheet of the target workbook. Driver and Model sheets are in that same target workbook.

    It seems to me that an easy way to do this would be to bring today's data into a separate sheet "Today" and then link the appropriate cells into the sheet "Data". In this case that should work fine.
    It appears that the Yahoo codes would have to change to bring in today's rather than historical data..... but I should be able to do that.

+ 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. Extracting Stock Data from Yahoo Finance
    By Alex Fernandes in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2013, 05:20 AM
  2. Open, High, Low, Close yahoo stock data required
    By Humming in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2012, 07:07 AM
  3. Gathering Stock Data from Yahoo MACRO help
    By denisl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-11-2012, 04:39 PM
  4. Pull stock Data from Yahoo...Excel 2010
    By wcredle in forum Excel General
    Replies: 1
    Last Post: 12-22-2011, 03:14 PM
  5. importing/ analyzing Yahoo!Finance stock data
    By Paul987 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-17-2006, 12:18 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