+ Reply to Thread
Results 1 to 4 of 4

Help needed (creating VBA macro to retrieve stock info)

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Help needed (creating VBA macro to retrieve stock info)

    tentatively I have written a macro for you. I am sending the file 'L80N.xlsm"
    see the column H in sheet ("E mail data"
    the open prices are filled by the macro
    if you want to retest you can run the macro "test"

    there is only one big problem. You have 334 stocks and mostly for each stock the date (co. G) is different ( may be one to three stocks may have same date). the macro downloads the rices for the next day to corresponding col. G dates and copy it to col H of the email data sheet. Temporarily the data is downloaded in sheet 3.

    IT TAKES NEARLY 9 MINUTES TO FILL THE DATA BY THE MACRO
    once you experiment with this with patience. meanwhile let me check whether some speedier solution can be made.
    see the macro in the vb editor to understand the logic of the macro
    Attached Files Attached Files
    I am not an expert. better solutions may be available
    $$$$venkat1926$$$$@gmail.com

  2. #2
    Registered User
    Join Date
    03-19-2012
    Location
    waterloo, ontario
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help needed (creating VBA macro to retrieve stock info)

    Hey venkat1926 I really appreciate you doing this for me this addressed exactly what I was looking for. Based on the macro that you provided me if I were to try and modify the code, would it be possible to retrieve information such as: Current price, Sector, Industry and Market Cap based on that macro. Sorry for asking all these questions fairly new to excel macro. For this project i'm basically try to run some analysis on stocks that my system recommends (i.e the email data i receive). Therefore on a nightly basis I receive the emails and then input the stock info into the excel spreadsheet. My goal is to utilize excel to see if the recommendations are working out the way they are suppose to, that's why i need to retrieve stock data from the net. Hopefully this info is more helpful, do you have skype by chance, i would be able to better communicate my goal via skype. Thanks for all your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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