For scrolling statusbar text, Justin Labenne posts some code using Windows API calls at http://www.vbaexpress.com/
Brad
Main Topics
Browse All TopicsHi All,
I was wondering if anyone knew how to make text passed to the Application.StatusBar property blink in the Excel status bar? For example something like: Application.StatusBar = "Alert!".
In addition, does anyone know how to make the text scroll repeatedly across the status bar?
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
For scrolling statusbar text, Justin Labenne posts some code using Windows API calls at http://www.vbaexpress.com/
Brad
Business Accounts
Answer for Membership
by: byundtPosted on 2009-04-07 at 20:07:39ID: 24093664
I hope that you aren't displaying a flashing message because your macro takes a long time to run. If so, a completely different approach is required--because the macro must finish before the OnTime event (which makes things blink) triggers. Your best approach is to make your macro run faster--if you recorded it, I guarantee that you can make the code run faster by eliminating the useless fluff that the macro recorder records. Your next best approach is to sprinkle statements in the macro that change the status bar text.
archives/2 004/06/03/ passing- ar guments-th rough-onac tion/
For blinking status bar text, about the best that you can do is to use the Application.OnTime event to turn the status bar text on and off. As you call the OnTime event repeatedly, one call clears the text and the next call displays it. The text is set in the AlarmClock sub by the variable Msg.
Although the sample code is adequate for most purposes, you may find yourself needing to pass a parameter to the macro called by the OnTime event (such as the text of the message). If so, Dick Kuskleika gives instructions at http://www.dicks-blog.com/
You could use the same approach to simulate scrolling, but the results won't be very good in my opinion. Either you spend too many machine cycles calling the OnTime event sub, or the refresh is so slow that the results are extremely jerky.
Note that some of the code goes in ThisWorkbook code pane, while other bits must go in a regular module sheet. The code won't work at all if you don't put it in the right place.
Brad
Select allOpen in new window
Sample workbook showing blinking status bar