+ Reply to Thread
Results 1 to 4 of 4

Excel Web App with Stock quotes

Hybrid View

  1. #1
    Registered User
    Join Date
    06-12-2012
    Location
    Munich
    MS-Off Ver
    Excel 2007
    Posts
    4

    Excel Web App with Stock quotes

    Hi,

    How can I retrieve Stocks quote with Excel Web App? With Google Spreadsheet I use:

    =GoogleFinance("GOOG"; "price")


    Is there a similar function with Excel Web App (maybe integrated with MSN)?

    Thanks for any help,

    Jacare

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Excel Web App with Stock quotes

    There's nothing built in, but you can use a bit of code:
    Public Function GetPrice(Ticker As String) As Double
    With CreateObject("MSXML2.XMLHTTP")
        .Open "GET", "http://uk.finance.yahoo.com/q?s=" & Ticker
        .send
        Do: DoEvents: Loop Until .ReadyState = 4
        GetPrice = Split(Split(.responsetext, "yfs_l84_" & LCase(Ticker) & """>")(1), "<")(0)
        .abort
    End With
    End Function
    You can then use this in a worksheet: =GetPrice("GOOG")

  3. #3
    Registered User
    Join Date
    06-12-2012
    Location
    Munich
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Excel Web App with Stock quotes

    Hello Kyle, thanks for your answer. But how can I insert a code at the Excel Web App? By Excel 03/07/10, there is no problem, but how can I use VBA with Excel Web APP?

    Thanks again,
    Jacare

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Excel Web App with Stock quotes

    Ah right, missed that bit. No idea, never used it

+ 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