Please wait window (VB)

WBoardman

New Member
Joined
Sep 18, 2002
Messages
19
Hi All,

I would like to know If there is a piece of code that can display a "Please wait" dialougue box while my Macro is thinking!
I know you can put text in the status bar, but I'd like a pop up window so its obvious somthing is happining. (So they dont start pressing buttons and closing stuff etc)

Many Thanks in Advance

Wayne :D
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
You can create a UserForm that will pop up. You can even put a ProgressBar control in it to fill up as the macro executes. At different spots in your macro put something like ProgressBar1.Value = .1 then .2, etc.[/code]
 
Upvote 0
Thanks for the Super Quick Reply Phantom,

As a reletive newbie to VB, can you (Or anyone) recomend a website to set me on my way. Or if someone is kind enough to post some sample code and instructions that would be fab!!!!!

Cheers!!!!
 
Upvote 0
Start off by creating a UserForm. Then you need to right-click on the Control Toolbox that appears and select ADDITIONAL CONTROLS. Add MICROSOFT PROGRESSBAR CONTROL. Add this new control to your UserForm. Then use the following code to give you an example:

Code:
    MsgBox "Step 1 of 4 complete"
    ProgressBar1.Value = 25
    MsgBox "Step 2 of 4 complete"
    ProgressBar1.Value = 50
    MsgBox "Step 3 of 4 complete"
    ProgressBar1.Value = 75
    MsgBox "Step 4 of 4 complete"
    ProgressBar1.Value = 100
    MsgBox "You are done!"
 
Upvote 0

Forum statistics

Threads
1,221,709
Messages
6,161,432
Members
451,705
Latest member
Priti_190

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