+ Reply to Thread
Results 1 to 4 of 4

Want MsgBox to disappear at end of sub (not after xx seconds)

  1. #1
    Registered User
    Join Date
    03-23-2020
    Location
    Seattle, USA
    MS-Off Ver
    365 business
    Posts
    16

    Want MsgBox to disappear at end of sub (not after xx seconds)

    We have a rather complex spreadsheet, and some of the macros perform queries and filters and other things to up to thirty worksheets or more, and can take up to twenty or thirty seconds.

    In order to speed things up, I've turned off screenUpdating on several of the macros, but this creates the issue of normies staring at a monitor that is apparently doing nothing. I'd like to start off with a msgBox advising the user to sit tight, and then disappear at the end of the sub when screen updates are turned back on. Possible?

    Excel version 2403

  2. #2
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,958

    Re: Want MsgBox to disappear at end of sub (not after xx seconds)

    There are a number of possibilities:
    • Create a userform with your message on it, show it before running and then unload it at the end.
    • Display a "Done" message at the end using the inbuilt MsgBox function
    • Change the cursor to an egg-timer while the code is running
    • Use DoEvents periodically to refresh the screen and update the statusbar with the progress.

  3. #3
    Registered User
    Join Date
    03-23-2020
    Location
    Seattle, USA
    MS-Off Ver
    365 business
    Posts
    16

    Re: Want MsgBox to disappear at end of sub (not after xx seconds)

    I was completely unaware of the egg timer option, that will do the trick just fine, thanks,

  4. #4
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,958

    Re: Want MsgBox to disappear at end of sub (not after xx seconds)

    Show the egg timer: Application.Cursor = xlWait
    Go back to pointer: Application.Cursor = xlDefault

+ 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. msgbox to disappear after a specified time
    By chubbychub in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-30-2022, 03:02 PM
  2. msgbox disappear until right value entered
    By biznez in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-19-2015, 04:35 PM
  3. [SOLVED] Need Help in Macro: Appear a Picture for few seconds and Disappear
    By vij8y in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2012, 02:20 PM
  4. Command Button to Disappear after a couple of seconds
    By michaeljoeyeager in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2012, 03:33 PM
  5. Cant get MSGBOX to disappear after clicking on the OK button.
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 07-11-2012, 09:59 AM
  6. Msgbox 5 seconds only
    By pr4t3ek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-05-2008, 07:24 AM
  7. show msgbox for 5 seconds
    By jocke in forum Excel General
    Replies: 0
    Last Post: 02-02-2005, 03:08 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