+ Reply to Thread
Results 1 to 6 of 6

Display Message Box for 5 seconds

  1. #1
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Question Display Message Box for 5 seconds

    Hi,

    can anyone please advise of the VBA code to display a message box i.e. ' Working On It.....' and close automatically after 3 seconds i.e with out any input from the user


    Any assistance received would be greatly appreciated

    Many thanks in advance

    Regards

    Rob
    Rob

  2. #2
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Display Message Box for 5 seconds

    As for as I know , it is not possible to scheduled a msgbox. You may use a custom user form instead and unload it for what ever time gap you want.
    Teach me Excel VBA

  3. #3
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,908

    Re: Display Message Box for 5 seconds

    Someone will probably advise the Shell.Popup method. I'll just warn you now that it is notoriously unreliable. A userform is a better bet, or an API call: https://www.excelforum.com/excel-pro...rm-msgbox.html
    Last edited by rorya; 08-17-2018 at 08:45 AM.
    Rory

  4. #4
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Re: Display Message Box for 5 seconds

    For clarification,

    my code runs and takes a long time and what I want is a message box to pop up at key points in the code and says 'Working On It.....' and close automatically after 3 seconds

  5. #5
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Display Message Box for 5 seconds

    No problem at all. you can add .show at any point and unload it with Application.wait method.

  6. #6
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,908

    Re: Display Message Box for 5 seconds

    It sounds like you'd be better off with a progress bar to me.

+ 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. [SOLVED] POP UP Message to prompt if open file is not used for x seconds
    By tameen42 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2014, 11:22 AM
  2. display seconds in header
    By tab1570 in forum Excel General
    Replies: 3
    Last Post: 11-22-2012, 09:34 AM
  3. Close message box after 5 seconds
    By randell.graybill in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2010, 02:28 AM
  4. [SOLVED] How to display seconds on time stamp?
    By uosam in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-28-2006, 05:10 PM
  5. How can I display hundreths of seconds?
    By Diamond Jones in forum Excel General
    Replies: 4
    Last Post: 11-08-2005, 09:55 AM
  6. [SOLVED] display no seconds in time format [h]
    By Finolac in forum Excel General
    Replies: 1
    Last Post: 10-03-2005, 11:05 AM
  7. [SOLVED] display minutes and seconds in excel
    By Jonathan Blundell in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-10-2005, 09:05 AM

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