+ Reply to Thread
Results 1 to 19 of 19

dissapearing message box with user input

  1. #1
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    870

    dissapearing message box with user input

    i have the below code, if someone can help me modify the code with a timer to disaapear by defautl if no user input is received after a few seconds (per say 10 seconds).

    Please Login or Register  to view this content.
    Last edited by chubbychub; 04-30-2024 at 12:58 PM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,033

    Re: dissapearing message box with user input

    To do that, you need to create a userform that you can show with your message and with commanbuttons to set the response: show the userform and schedule a macro using the ontime method to hide the userform if it hasn't already been replied to.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    03-12-2022
    Location
    Argentina
    MS-Off Ver
    2016
    Posts
    38

    Re: dissapearing message box with user input

    Hi, try this, timeout is 5 sec

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    870

    Re: dissapearing message box with user input

    thanks for the replies, danny i get error 'Findwindow' typemismatch error on the debugger

  5. #5
    Registered User
    Join Date
    03-12-2022
    Location
    Argentina
    MS-Off Ver
    2016
    Posts
    38

    Re: dissapearing message box with user input

    sorry, I think Findwindow is not necessary here

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,512

    Re: dissapearing message box with user input

    Please Login or Register  to view this content.
    Last edited by daboho; 04-30-2024 at 03:13 PM.

  7. #7
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    870

    Re: dissapearing message box with user input

    daboho, thanks for the reply, but how come yes or no buttons dont show up? only, ok buttons shows , thenmessagebox disappears after 5 seconds, but can you please code with a 'yes ' and 'no' button and wait for 5 seconds, if no user input, then disappear? thank you

  8. #8
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,512

    Re: dissapearing message box with user input

    Perhab untest
    Please Login or Register  to view this content.
    Last edited by daboho; 04-30-2024 at 04:50 PM.
    "Presh Star Who has help you *For Add Reputation!! And mark case as Solve"

  9. #9
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    870

    Re: dissapearing message box with user input

    i get object variable or block variable not set error, and thank you for your attention and your help.
    Last edited by chubbychub; 04-30-2024 at 05:43 PM.

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

    Re: dissapearing message box with user input

    Does this work for you?


    Please Login or Register  to view this content.

  11. #11
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,343

    Re: dissapearing message box with user input

    Just be aware that the shell.popup method is notoriously unreliable.
    Everyone who confuses correlation and causation ends up dead.

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

    Re: dissapearing message box with user input

    Just be aware that the shell.popup method is notoriously unreliable.
    I've heard it said but have never experienced any issues with it.

  13. #13
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,343

    Re: dissapearing message box with user input

    I have. Even on the same machine I've found it unreliable.

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

    Re: dissapearing message box with user input

    In what way?

  15. #15
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,343

    Re: dissapearing message box with user input

    It didn't dismiss itself.

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

    Re: dissapearing message box with user input

    Maybe I've just been lucky.

  17. #17
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,343

    Re: dissapearing message box with user input

    Or I've been unlucky! Anyway, once bitten, and all that.

  18. #18
    Forum Contributor
    Join Date
    10-24-2012
    Location
    San Diego, USA
    MS-Off Ver
    Excel 2019
    Posts
    870

    Re: dissapearing message box with user input

    Bytemarks! it does work for me, perfectly. Thank you! thank you all for the help.

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

    Re: dissapearing message box with user input

    You're welcome. Good to hear.

+ 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. Message to user based on what day of the week they input
    By Incursio21 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-12-2023, 01:15 AM
  2. Message box with user input and varying answers
    By matt87 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2017, 11:03 AM
  3. [SOLVED] Message box requesting user input if range is NOT empty?
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-15-2012, 02:45 PM
  4. Displaying message box based on user input.
    By CJPHX in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2010, 10:30 AM
  5. User input message box lookup table
    By cdw904 in forum Excel General
    Replies: 1
    Last Post: 05-02-2007, 11:27 AM
  6. User form textbox message for input error
    By microsmith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-01-2007, 02:50 PM
  7. Replies: 3
    Last Post: 01-25-2005, 05: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