Closed Thread
Results 1 to 10 of 10

Need to execute VBA code @ 9:30:01 exactly

Hybrid View

  1. #1
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    With the Worksheet change macro it will cause an error if it has an entry that Excel cannot interept as a time

    Also a Worksheet Change macro will not be triggered on L1 (the cell I used in my code) if L1 has a formula in it.


    Note:- There may be times that Excel is busy and will not be able to start to run the macro at the exact second you specified
    Last edited by mudraker; 12-28-2008 at 07:09 AM.
    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.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    You need a time and date to schedule a macro with OnTime; otherwise, it will run immediately, since you will have scheduled it to run some time on 1/0/1900.

    One reason that Excel might be busy (and the macro not run) if it it gets left in edit mode -- e.g., you put the cursor in the formula bar and leave it there ...
    Entia non sunt multiplicanda sine necessitate

Closed 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