+ Reply to Thread
Results 1 to 2 of 2

Interrupting code

  1. #1
    Registered User
    Join Date
    10-02-2008
    Location
    Michigan
    Posts
    68

    Interrupting code

    I have a have a IEtimer control on a form and 2 command buttons on a worksheet. One of the buttons enables the timer and the other button disables it.

    When the timer is enabled code starts scanning cells looking for certain values and then
    modifies other cells if needed. I have DoEvents in every line of code. The problem is that the second button that disables the timer, has to be pressed multiple time before it fires. Is there a way to interrupt code with one click of the button?

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Interrupting code

    Ctrl-Break



+ 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