+ Reply to Thread
Results 1 to 4 of 4

Stop Macro Thread from Running

  1. #1
    Registered User
    Join Date
    05-01-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    6

    Stop Macro Thread from Running

    I have a set of Macros that are called simultaniously using the code below. In the first Macro "Get_Data22" it opens a file selected from a window, the macro itself has an error handler to End Sub if no file is available. Although the way I have set this up to run is that the code still proceeeds to move onto the "SaveWithVariable22" Macro. I was wondering if there was any error condition i could add to stop "Sub RunAll22" from running all the other pieces of code.

    Thanks
    Michael



    Please Login or Register  to view this content.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Stop Macro Thread from Running

    Hi Michael. I'm not sure if this would work but you could try to replace 'End Sub' with just 'End'.

  3. #3
    Registered User
    Join Date
    05-01-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Stop Macro Thread from Running

    Hi,

    Thanks both for the suggestions. Mumps1 I tried your suggestion and it worked flawlessly!

    Thanks soo much

    Michael

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Stop Macro Thread from Running

    My pleasure.

+ 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 to stop running at last row
    By staples in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2009, 01:52 PM
  2. Stop a running macro
    By Frank e in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-18-2008, 02:07 PM
  3. Macro stop running
    By schnett in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-10-2008, 04:01 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. How do I stop a Macro from running?
    By JulianB in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-10-2006, 05:40 PM

Tags for this Thread

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