+ Reply to Thread
Results 1 to 2 of 2

update a cell every minute

  1. #1
    Registered User
    Join Date
    11-04-2003
    Posts
    3

    update a cell every minute

    Hi,

    I have an application which sends stock quotes to my spreadsheet trought DDE server.

    I can receive the quotes and work with it.

    I need a macro that will check the time and every minute fill a cell with the stock quote. In the end of the day I want to have a column with the minutes (eg 10:00:00, 10:01:00,... up to 17:00:00 in each line) and then a series of columns with the quotes of the stock for each one of the minutes.

    I tried first to create a loop and keep testing the current time and every time a minutes passes i move one line down and fill the columns with the prices.

    The thing is that this method freezes my computer as the macro is on loop to check for changes in the current time....

    Does anybody knows any other way of doing these?????

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Have a look at the Application.Ontime

    It allows macrows to be run at a set time or interval
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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