+ Reply to Thread
Results 1 to 3 of 3

Ending application on time macro

  1. #1
    Forum Contributor
    Join Date
    06-05-2006
    Posts
    166

    Ending application on time macro

    Hi,

    I have the following code:

    Please Login or Register  to view this content.
    Unfortunately I cannot get this macro to end. I have tried inserting an end if macro attached to a button on my sheet but the ontime seems to override it and still won't stop. Any help in ending this macro (ideally using a button on my sheet) without having to exit the whole workbook would be most appreciated!

    Thanks very much in advance,

    Phil

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good evening phil2006
    Quote Originally Posted by phil2006 View Post
    Any help in ending this macro (ideally using a button on my sheet) without having to exit the whole workbook would be most appreciated
    Something like this should, when called, stop the macro nicely :
    Please Login or Register  to view this content.
    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Contributor
    Join Date
    06-05-2006
    Posts
    166
    Thanks very much Dominic! I knew it would be something very quick and easy for someone in the know! Using this comes up with a run time error '1004' though. This isn't a big problem for this sheet as the key for me was to end the ontime application quickly.

    Thanks very much again,

    Phil

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro Each time range in column a is changed
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-25-2008, 12:08 PM
  2. Running a macro each time certain cell content is changed
    By mlcfexcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2007, 08:34 PM
  3. country finder lookup macro
    By theghost in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-07-2007, 10:41 PM
  4. Time Delay Macro
    By CJ-22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-27-2006, 04:43 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