» Countdown in status bar using VBA in Microsoft Excel
CATEGORY - Menus, Toolbars, Status bar in VBA
VERSION - All Microsoft Excel Versions
A count down from 30 to 0 seconds is to be displayed in the status bar.
Answer:
Insert the following code in the standard module.
Sub CountDown()
Dim intCounter As Integer
Dim bln As Boolean
bln = Application.DisplayStatusBar
Application.DisplayStatusBar = True
For intCounter = 30 To 1 Step -1
Application.StatusBar = intCounter & " Seconds..."
Application.Wait Now + TimeSerial(0, 0, 1)
Next intCounter
Application.StatusBar = False
Application.DisplayStatusBar = bln
End Sub
Book Store:
Recommended Books:
- H&R Block's Just Plain Smart(tm) Tax Planning Advisor: A year-round approach to lowering your taxes this year, next year and beyond
- The McGraw-Hill Guide to Writing a High-Impact Business Plan: A Proven Blueprint for First-Time Entrepreneurs
- The Intelligent Investor: The Definitive Book On Value Investing, Revised Edition
- Microsoft Excel 2002 Visual Basic for Applications Step by Step
- Marketing Plans
- Mortgages For Dummies®
No comments have been submitted.

