timer on message box

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Cbrine

Well-known Member
Joined
Dec 2, 2003
Messages
3,196
I don't think you can do that with a message box, although you should be able to create a modeless form that does it for you.
 

chad1222

Board Regular
Joined
Jul 14, 2003
Messages
133
jimboy i already have that code running for another task that i do with the progress bar and such, all i wanted in this case is when the code is done, the last line now says

m = MsgBox("Your Summary is now complete", , "USPS")

i just get annoyed with having to click enter to get rid of the box , i would just like it do be displayed for a second then disappear on its own.

Thanks
 

Cbrine

Well-known Member
Joined
Dec 2, 2003
Messages
3,196

ADVERTISEMENT

Like I said create a modeless userform that starts a loop on open and at the end of the loop closes itself. Put your Text Message in a Text box on the form. When you show the form the loop starts, runs for a second and then unload's or hide's itself. This gives you a message box that disappears after 1 second.
 

BuddieB

Board Regular
Joined
Aug 6, 2003
Messages
174
Here is some code that I got earlier, sorry I dont remember from whom.

'POP UP MESSAGE BOX WITH TIMER
'2 represents number of seconds msgbox will appear for
CreateObject("WScript.Shell").Popup "Body of message.", 2, "Title"


Try searching the board as well for the keyword TIMER.
 
Learn Excel from Bill Jelen

Understanding data is crucial, and the easiest place to start is with Microsoft Excel.

Forum statistics

Threads
1,151,565
Messages
5,765,147
Members
425,263
Latest member
alcat

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top