Wait msgbox in macro.

prajul89

Active Member
Joined
Jul 9, 2011
Messages
404
Hi,

how to display a msgbox like object with text as "Please wait" while macro is running with no buttons on it and disappears after a certain codes.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
You should create at userform which you can show and hide at any given point in your code by

Userform1.show

Code

Userform1.Hide

you may have to put DoEvents command in your code so as the userform will show correctly
 
Upvote 0
I do not believe you can show a messagebox without at least an OK button, in which case you don't have control over when that messagebox will disappear... Userforms are surprisingly easy to make and run though!
 
Upvote 0
I have created a form as you guys said to, But when I execute the code to show that userform "userform.Show" the Codes are being stopped. Unless I click [close] in the userform the macro is stopped. What is the wrong thing I am doing??
 
Upvote 0
If you need to run code whilst the userform is displayed, make sure the showmodal property of the form is set to false.
 
Upvote 0

Forum statistics

Threads
1,224,560
Messages
6,179,519
Members
452,921
Latest member
BBQKING

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
Back
Top