+ Reply to Thread
Results 1 to 10 of 10

Stock Prices import

Hybrid View

roger00782006 Stock Prices import 12-07-2010, 06:14 PM
6StringJazzer Re: Stock Prices import... 12-08-2010, 09:09 AM
roger00782006 Re: Stock Prices import... 12-08-2010, 09:21 AM
6StringJazzer Re: Stock Prices import... 12-08-2010, 09:33 AM
roger00782006 Re: Stock Prices import... 12-08-2010, 06:17 PM
6StringJazzer Re: Stock Prices import... 12-08-2010, 07:04 PM
roger00782006 Re: Stock Prices import... 12-09-2010, 12:22 AM
6StringJazzer Re: Stock Prices import... 12-09-2010, 09:38 AM
6StringJazzer Re: Stock Prices import 12-09-2010, 11:23 AM
Jaack Re: Stock Prices import... 12-08-2010, 07:32 PM
  1. #1
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,785

    Re: Stock Prices import challenge

    This was an interesting little project, I learned a lot.

    Attached is a workbook that is seeded with a range of dates from earlier in the year, just to demonstrate how this works. When you open the workbook, you must allow macros to run. Then it automatically updates the URL to reflect the current date, and updates the web query with the new URL.

    One note: In the Yahoo page, if you enter Dec 9 as the end date, the latest date in the table is Dec 8 (at this moment). I don't know if there is a lag from the closing bell to when they make the data available in this form.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  2. #2
    Registered User
    Join Date
    12-07-2010
    Location
    toronto
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Stock Prices import challenge

    HI Jazzer,
    Thank you for your hardwork. A small request : is it possible to NOT to have 11-Feb-10 0.025 Dividend
    showing up on excel?
    and yeah i guess a more challenging project: its again on stock quotes: I would like to have something like based on price parameters on sheet 1 (for eg: on sheet 1 put in a price range), have the excel file find stocks within that price range from yahoo finance ( on sheet 2) and once the stocks are listed on sheet 2, corresponding sheets get setup automatically for each stock (the price quotes would be just like you had done the first coding for) . i think this would be a rather challenging one eh..thanks once again..

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,785

    Re: Stock Prices import challenge

    Quote Originally Posted by roger00782006 View Post
    Thank you for your hardwork. A small request : is it possible to NOT to have 11-Feb-10 0.025 Dividend
    showing up on excel?
    Not sure. Excel web import is designed to identify an HTML table in a web page and grab the entire table. It doesn't have hooks to edit it on the import step. You could create a new worksheet, and populate it with formulas referencing the imported data, skipping the stuff you don't want. Also, VBA might be able to edit the data once it's imported, although I don't know how that will affect the ability to accept future refreshes of the data. I may have time to take a look at this.

    and yeah i guess a more challenging project: its again on stock quotes: I would like to have something like based on price parameters on sheet 1 (for eg: on sheet 1 put in a price range), have the excel file find stocks within that price range from yahoo finance ( on sheet 2) and once the stocks are listed on sheet 2, corresponding sheets get setup automatically for each stock (the price quotes would be just like you had done the first coding for) . i think this would be a rather challenging one eh..thanks once again..
    I'll let you know what my consulting rate is

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,785

    Re: Stock Prices import

    Here is an update that removes the dividend lines.

+ 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