Results 1 to 4 of 4

Help needed (creating VBA macro to retrieve stock info)

Threaded View

  1. #3
    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

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