A short routine to extract stock price data from Yahoo website historical prices(Adj. Close).
Input to your program: Stock symbols, Start Date, End Date.
Output from your program: Stock prices at Start Date and End Date and P/E in Excel format.
Extracting stock data from Yahoo is quite simple if you know how. For instance, for IBM, see the link
[login to view URL]