+ Reply to Thread
Results 1 to 2 of 2

Need macro that will BREAK a running macro

  1. #1
    Registered User
    Join Date
    02-01-2005
    Posts
    62

    Need macro that will BREAK a running macro

    I have a macro that runs, and its pretty lengthy. I would like to create a macro that I will attach to a Command Button that will stop a macro that is currently running. One that works in the same way the break key works. I tried using the SendKeys {Break} but that didn't seem to work.

    Is it possible to run a macro while another is running?
    What's the code to do what I am looking to do?

    Thanks in advance for any help,

  2. #2
    Bob Phillips
    Guest

    Re: Need macro that will BREAK a running macro

    That is because until the macro suspends, the toolbar button has no effect.
    Catch-22.

    What you can do is to add DoEvents throughout the code, which yields
    execution so that the operating system can process other events.


    --
    HTH

    Bob Phillips

    "grime" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I have a macro that runs, and its pretty lengthy. I would like to
    > create a macro that I will attach to a Command Button that will stop a
    > macro that is currently running. One that works in the same way the
    > break key works. I tried using the SendKeys {Break} but that didn't
    > seem to work.
    >
    > Is it possible to run a macro while another is running?
    > What's the code to do what I am looking to do?
    >
    > Thanks in advance for any help,
    >
    >
    > --
    > grime
    > ------------------------------------------------------------------------
    > grime's Profile:

    http://www.excelforum.com/member.php...o&userid=19227
    > View this thread: http://www.excelforum.com/showthread...hreadid=387599
    >




+ 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