![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 160
|
I have a message box output when I click a button. I want the message box to act as a counter say, it counts 3, 2, 1 then the msg box automatically goes. So, it is acting as a countdown. Is this possible?
|
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
|
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Posts: 160
|
Thanks for the reply.
Yes, I just want a 3 second timer and after the 3 secs, the msg box goes and goes back to the workbook without any changes. Like a wait 3 seconds command. |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: London, UK
Posts: 167
|
no, you cannot change the msgbox text once it is shown, or cancel the dialog programmatically.
your best bet is to create a small userform with just a text label on it, then use this form to do what you want.
__________________
<table style="background-color:#0e54be" cellspacing="1" cellpadding="2"><td style="background-color:#ceffff;font-family:arial;color:#072c63;font-size:8pt;">***DALEY** :P**</td></table> |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Location: Connecticut
Posts: 179
|
I'm not sure if this would work with a message box. But if you could use a "userform" instead, you can use this code in the userform:
Private Sub UserForm_Activate() Application.Wait Now + TimeValue("00:00:03") Userform1.Hide End Sub |
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
You have to use the Address of functon and the system Timer. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|