+ Reply to Thread
Results 1 to 4 of 4

No response from simple stock price watcher

  1. #1
    Registered User
    Join Date
    05-02-2015
    Location
    Czech Republic
    MS-Off Ver
    2013
    Posts
    28

    No response from simple stock price watcher

    Hello,

    I am new to Excel Programming and trying to make my personal stock journal which would obtaining actual price from Yahoo Finance.
    The goal is read stock symbols in second column and retrieve it's price into third.
    Here's what I was trying to manage:
    Please Login or Register  to view this content.
    Problem is, it does not do anything.
    Do somebody know what's wrong with that, please?
    I would bet something about cell range in the secon line.

  2. #2
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: No response from simple stock price watcher

    Since you didn't include any of your symbols, I couldn't be sure why it's not working.
    Splitting responsetext is prone to errors though, it's better to get the actual element.
    Here's some code I created for someone else on here the other day:
    Set references to Microsoft XML and Microsoft HTML

    Please Login or Register  to view this content.
    This gets the current stock price from google finance and works like a function.
    So in a cell you could say "=Stockquote(aapl)" and it would get the stock quote for Apple.

    I can easily adjust this to yahoo - just give me a link and specify what you'd like to get.
    Last edited by JasperD; 05-05-2015 at 06:46 PM.
    Please click the * below if this helps

  3. #3
    Registered User
    Join Date
    05-02-2015
    Location
    Czech Republic
    MS-Off Ver
    2013
    Posts
    28

    Re: No response from simple stock price watcher

    Hi JasperD,

    I am totaly new to Excel Programming and I am sure I have done something wrong.
    Here's what I've tried:
    I have copied the code you provided me and inserted the function as new Module.
    Then I have checked up all boxes of Microsoft HTML and XML in Tools-References.
    When I type =StockQuote(AAPL) in a cell it retrieves "#VALUE!".
    I have also tried to add the function as Object but with the same result.
    What can I do to make it work?
    Thank you very much.

  4. #4
    Registered User
    Join Date
    05-02-2015
    Location
    Czech Republic
    MS-Off Ver
    2013
    Posts
    28

    Re: No response from simple stock price watcher

    Does anybody know what I am doing wrong?
    Last edited by jirakst; 05-06-2015 at 03:43 PM. Reason: typo

+ 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. Total sold price according to stock price list
    By maniootek in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-26-2014, 10:54 PM
  2. Replies: 3
    Last Post: 01-03-2013, 12:32 AM
  3. Replies: 0
    Last Post: 10-28-2012, 07:22 AM
  4. How to Get a Stock Price ONLY - not quote
    By pjw23 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2008, 03:41 AM
  5. [SOLVED] Cannot get a simple stock price
    By Steve Friday in forum Excel General
    Replies: 2
    Last Post: 04-13-2006, 11:52 AM

Tags for this Thread

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