Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

vf_GetHistory Function - Downloading Historical Price and Dividend Data into Excel

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
579 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 26, 2010

Demo of vf_GetHistory function part of an Excel add-in example posted on http://vbafin.com/Price-Functions.php - Visual Basic for Financial Professionals web site. The function returns Historical Prices (Date and one of the following: Open, High, Low, Volume, Close, Adj Close) or Dividends (Ex Date and Dividend Amount). Data sourced from Yahoo Finance.

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (2)

Sign In or Sign Up now to post a comment!
  • The easiest (not necessary the best) way is to change the line

    TempArray(r, 2) = Temp(1)

    in Function ReadCsvFile, Module pxFunctions with the following:

    If UBound(Temp) > 5 Then TempArray(r, 2) = Temp(6)

    Else TempArray(r, 2) = Temp(1)

    End If

    I'll be making some changes to the add-in and update the site in the next few weeks that will incorporate a better solution for you.

  • Does anyone know how to obtain close data rather than open data from the .csv file?? thanks

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more