+ Reply to Thread
Results 1 to 4 of 4

"Please wait" auto-open and close popup box in VBA?

  1. #1
    Registered User
    Join Date
    07-24-2013
    Location
    Bratislava, SK
    MS-Off Ver
    Office Pro Plus 2016
    Posts
    42

    "Please wait" auto-open and close popup box in VBA?

    Hello,

    I have an Excel file which, when the user activates a macro, does a fair amount of sorting and recalculating. In cases where the sheet contains a lot of information, the operation may take some time, during which it may seem to the user that the file has stopped responding.

    I was thinking of a "Please wait, working on data" MsgBox which would pop up when the macro starts, and auto-close when it ends. I looked everywhere online, but can't find a way to make the box not show the "OK" button (I wouldn't want to impose an additional click on the user), and instead just close by itself when the macro has finished working.

    Any ideas on how to accomplish this?

    Thanks,

    -Isa

  2. #2
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: "Please wait" auto-open and close popup box in VBA?

    Create a userform to display instead of the message box or progress bar. See attached
    Attached Files Attached Files
    Last edited by nigelog; 02-20-2019 at 05:43 AM.

  3. #3
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,744

    Re: "Please wait" auto-open and close popup box in VBA?

    I've sort it like this:
    Insert nice picture, with message like 'please wait.... data loading/recalculating' or something like this and make it visible=false.

    then in your macro:

    - show it (visible=true)
    - screenupdating = false
    - main part of your macro here
    - screenupdating = true
    - hide it (visible=false)

    p.s. straight from one of mine:
    refreshing and recalculating around 25-35 seconds, so it displays nice forest view with small info 'Please wait' at the bottom right

    Please Login or Register  to view this content.
    Last edited by KOKOSEK; 02-20-2019 at 05:59 AM.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  4. #4
    Registered User
    Join Date
    07-24-2013
    Location
    Bratislava, SK
    MS-Off Ver
    Office Pro Plus 2016
    Posts
    42

    Re: "Please wait" auto-open and close popup box in VBA?

    Thank you all for your great ideas, I'll probably look into creating a simple userform to display a "please wait" message.

+ 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. Open shell "Bartender", Print labels, then close
    By mk3ll00 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2021, 06:43 PM
  2. Problem with consistent "Application.Wait (Now + TimeValue("0:00:10"))"
    By JimmyWilliams in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 02-09-2018, 08:20 PM
  3. Close "already open pdf file" using macro made in excel 2010
    By Baghel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-17-2014, 02:46 PM
  4. Close open files following "With Workbook.Open" cycle
    By aciccarelli in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2014, 10:58 AM
  5. [SOLVED] Must open and close UserForm twice for the other codes in the "Open..." Macro to execute
    By tnuis in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-10-2013, 09:28 AM
  6. need VBA code to open a file type then do a "=countA(A:A)-1" and close it
    By BrandonFromSingapore in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2012, 12:19 PM
  7. how to close a file opened with "Workbooks.Open Filename:=sWb"
    By ggremel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2011, 10:37 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