Status Bar in MsExcel VBA

OlivierS

New Member
Joined
May 29, 2014
Messages
28
Hi,

I have set the following code in my Macro:



'Add a message
Application.DisplayStatusBar = True
Application.StatusBar = "Please wait ... I'm creating your " & strFrequency & " report(s)"

But can't see anything when the macro is running.
Where is it meant to be displayed?

Thank you
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
bottom left of the screen. if you step through your code does it display (it could be too quick when run in code)
 
Upvote 0
Thank you @mole999

Is there an easy way to display a message box rather than using the status bar (if I can't see it, I doubt my colleagues will !
 
Upvote 0
Call MsgBox("Please wait ... I'm creating your " & strFrequency & " report(s)", vbExclamation, Application.Name)
 
Upvote 0
yes. code stops until acknowledged
 
Upvote 0
You can use a modeless userform to display the message. That will not stop code execution.
 
Upvote 0
in which case

Call MsgBox("Please wait ... I'm creating your " & strFrequency & " report(s)", vbExclamation Or vbSystemModal, Application.Name)
 
Upvote 0
@mole999, that's still modal for excel, it also keeps the msgbox persistently on top of all system windows. I don't think that there is any way to make a standard msgbox modeless.
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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