+ Reply to Thread
Results 1 to 5 of 5

Pause macro once message box pops up

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,709

    Pause macro once message box pops up

    I would like to amend my code to allow the macro to be paused once the message box appears and the necessary info has ben inputted. Once inputted , the macro to continue

    It would be appreciated if someone could kindly advise me on how to do this

    Please Login or Register  to view this content.
    Last edited by Howardc1001; 01-06-2019 at 04:24 AM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Pause macro once message box pops up

    How you handle this will very much depend on what information needs adding, where and at what point it should be added.

    Your VBA above only tells us you're copying data from one sheet to another and deleting duplicates. It doesn't explain enough about what the process is for us to assist in how to validate it all.

    If there is info that needs adding then it would be usual practice to check if all required data exists and continue if it does rather than pause a macro while the user adds it. Or stop the macro above, prompt the user to add the data and then by one means or another run another macro when they've done their bit.

    BSB

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,709

    Re: Pause macro once message box pops up

    Thanks for your reply and explanation.


    once the message box appears, the user will have to manually check if he/she needs to input data after which the macro will then have to continue


    Based on your input, it appears that the best solution, would be to run another macro after the user has inputted the data

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Pause macro once message box pops up

    Hello Howardc1001,

    Another option would be to use a Userform in non Modal view as a "Message Box", do what is required, and continue with your Macro.

    Regards
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  5. #5
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,709

    Re: Pause macro once message box pops up

    Thanks for the advice

+ 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. Replies: 14
    Last Post: 10-19-2018, 07:23 AM
  2. [SOLVED] pause macro and show message box to click on it to continue
    By Megatronixs in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 03-26-2014, 04:49 PM
  3. [SOLVED] Check box that pops a text box or message box upon selection
    By neo21384 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-07-2013, 01:18 PM
  4. Message box pops when another workbook modified or saved
    By thameem127 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-18-2012, 01:15 PM
  5. [SOLVED] Message box that pops up if values in array are <=0
    By emoandy05 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2012, 12:33 PM
  6. error message pops up
    By louise2613 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-21-2012, 12:36 PM
  7. Macro Pause, show message, continue
    By davegb in forum Excel General
    Replies: 3
    Last Post: 02-11-2005, 01:06 PM

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