?
Solved

Excel VBA get range prices from historical stock prices

Posted on 2015-02-04
6
Medium Priority
?
183 Views
Last Modified: 2016-02-10
I have a excel workbook with price-downloader macro, attached. What I'm looking for is a solution to get and store only data I need. Please see attached file for explanation.
Also I'd like to get an expert opinion about optimization of a quote downloading macro I have.
Thank you in advance.
Yahoo.xls
0
Comment
Question by:gspodaku
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 31

Expert Comment

by:gowflow
ID: 40589550
When you say:

One way would be to get needed data from those sheets and delete them but I think it is not the smartest way.

You mean you want all the data in sheet input ?
like
MSFT      1/1/2015      2/1/2015
should be 1 row only for this date range the
Open Price      Highest High      Lowest Low      Close Price

or it should be for every day during this period ?

Can you simply give us the real figures for these
MSFT      1/1/2015      2/1/2015
IBM              1/1/2015      2/1/2015
GOOG      1/1/2015      2/1/2015
GE              1/1/2015      2/1/2015

so we know how to go about doing the calculations ?
gowflow
0
 

Author Comment

by:gspodaku
ID: 40589676
What I need are Open Price, Highest High, Lowest Low, Close Price of specified date range for each Ticker.

I need to fill "yellow square" with data.
For example row for MSFT should look like:
Ticker      Start      End      Open Price      Highest High      Lowest Low      Close Price
MSFT      1/1/2015      2/1/2015      46.66      47.91      40.35      40.40



P.S.
I forgot to mention that I need it to work in MS Excel 2003.
0
 
LVL 31

Expert Comment

by:gowflow
ID: 40589725
yes ok pls test this file it will get you the values in Input sheet and will not create the sheets.
gowflow
Yahoo-V01.xlsm
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 31

Accepted Solution

by:
gowflow earned 2000 total points
ID: 40589738
Ooops !!! just saw your Excel 2003 ~~

Here it is.
gowflow
Yahoo-V02.xls
0
 

Author Comment

by:gspodaku
ID: 40589867
Thank you.
0
 
LVL 31

Expert Comment

by:gowflow
ID: 40590648
Welcome
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question