Results 1 to 3 of 3

Thread: Pause Macro to allow for editing

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2003
    Location
    Mt. Holly, NJ
    Posts
    31

    Pause Macro to allow for editing

    Hi all,

    Is there a way to pause a macro at a certain point to allow for editing, and then allow the user to resume the macro where it left off?

    I'm automating a data-entry process that will return an error message if some of the data is incorrect. What I would like to do is have the program pause, allow the user to change the data on the spreadsheet in front of them, and then resume the macro.


    Any ideas?
    Last edited by Yesuslave; Jul 16th, 2022 at 07:19 AM.

  2. #2
    New Member pkirk25's Avatar
    Join Date
    Oct 2003
    Posts
    4

    Use a form instead of msgbox

    Instead of using msgbox, pop up a modal form with field to enter the correct data. Code execution is paused until the form is closed.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2003
    Location
    Mt. Holly, NJ
    Posts
    31
    The problem with that solution is that what I really need the user to be able to do is edit the worksheet directly, as the user will not know exactly which field is incorrect (and there is no way of knowing which field is incorrect, so the user will have to do a little trial and error).

    So, is there a way to allow the user to edit the workbook while the macro is paused? And then allow the user to resume the macro again?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width