Results 1 to 8 of 8

Stop timed macro on close

Threaded View

  1. #1
    Registered User
    Join Date
    09-25-2008
    Location
    NJ
    Posts
    15

    Stop timed macro on close

    I have the following macro to recalculate the time every second on opening a spreadsheet

    Sub Auto_Open()
    Calculate
    Application.OnTime Now + TimeValue("00:00:01"), "Auto_open"
    End Sub

    Looking for the code I need to add that will stop the macro when the file is closed.

    Many thanks
    Last edited by Allardin; 10-06-2008 at 07:20 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Delete Sheets on close macro
    By richardeallen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-24-2008, 05:46 AM
  2. How to Stop a Macro Safely?
    By game in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2007, 06:56 PM
  3. Record Macro Stop Button
    By lwmweb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2007, 09:13 PM
  4. Macro won't stop running!
    By wizard007 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-05-2007, 06:09 AM
  5. Help: How to stop macro security warning
    By cabezahueco in forum Excel General
    Replies: 2
    Last Post: 10-27-2006, 02:10 PM

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