+ Reply to Thread
Results 1 to 2 of 2

MsgBox timer working only once

  1. #1
    Registered User
    Join Date
    09-23-2015
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    9

    MsgBox timer working only once

    Hello All

    I have a code that search a different name in a database one after the other. I know the some name wont be found. So I have a error popup message saying it's not found. I have put a timer so the message close after 1 sec. It work for the first error, but not for the subsequant error message. It close only when I click OK. Error code at the end of the macro in green. What do you suggest?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: MsgBox timer working only once

    Hi wawamr2,

    Instead of using a VBS MsgBox, you might want to consider using a UserForm which simulates a MsgBox such as in Sub TestOne below. See the file associated with post #4 in the following link which contains the code below: http://www.excelforum.com/excel-prog...ond-timer.html

    Ordinary Code module Test code:
    Please Login or Register  to view this content.
    UserForm UserFormMsgBox code:
    Please Login or Register  to view this content.
    Ordinary Code Module ModUserFormMsgBox code:
    Please Login or Register  to view this content.
    I hope this helps.

    Lewis

+ 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] MsgBox with Timer
    By CarlosAntenna in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-16-2020, 11:18 PM
  2. MSGBOX with half a second timer?
    By Corgenius in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-09-2015, 09:10 AM
  3. [SOLVED] Formatting timer display in MsgBox
    By Student1990 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-04-2015, 10:06 PM
  4. timer code not working
    By flyinghigher2011 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2013, 02:03 AM
  5. Timer not working in VBA - Urgent help please
    By cross0404 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2013, 05:14 PM
  6. Get VBA TImer to appear in MsgBox
    By excelhelp711 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-16-2012, 02:05 AM
  7. VBA pop up countdown timer - like a msgbox
    By WAW in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2010, 06:19 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