+ Reply to Thread
Results 1 to 6 of 6

Pausing a Macro During Execution

  1. #1
    Registered User
    Join Date
    04-30-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    38

    Pausing a Macro During Execution

    Hi,

    I have a macro that runs when the user selects an item from a drop down menu.I need to pause until the user fills in information - min and max values - in two cells. I would like the macro to detect when the user has filled in both cells and then resume the execution of the macro. Can anyone please tell me how to do this? Thank you.

    Also I would like to create a drop down menu on the fly in a specific cell via the macro. Is this possible? If yes, can you please suggest how? Thank you.

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,956

    Re: Pausing a Macro During Execution

    Here's an example of how I do it. We start at the end of my current macro, go to Pauser, create two buttons to activate two other macros (choice for the user). After they choose, KillButts kills the buttons, then off to the next macro ("Resumer1"):
    Please Login or Register  to view this content.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Pausing a Macro During Execution

    Another way:
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    04-30-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Pausing a Macro During Execution

    Thank you Joimili. This is very interesting but overkill for my application at this time. I will however file it away for future reference. Once again, thank you..

  5. #5
    Registered User
    Join Date
    04-30-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Pausing a Macro During Execution

    Thank you shg. This will do exactly what I need for my application. I did not even know this existed. Thank you.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Pausing a Macro During Execution

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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