
Tips.Net > WordTips Home > Macros > WordBasic Examples > Displaying the Time
Summary: If you use an older version of Windows, this WordBasic macro may be useful to you. (This tip works with Microsoft Word 6, and Word 95.)
This is a spiffy little tip that I find useful, particularly if you are running Word on a version of Windows before Windows 95. I'll admit it--I don't particularly care for the Clock accessory of Windows. It can be so distracting to always be there, and I have this aversion to having lots of programs running at the same time. (Something about wasting system resources on non-essential programs, I think.) However, it is still nice to know what time it is once and a while. The following very short macro, ShowTime, displays the current time in a message box. You can assign this macro to a shortcut key or to a toolbar button. In that way, you can see the time whenever you want, without the necessity of wasting system resources.
Sub MAIN MsgBox Time$(), "Time Marches On", 64 End Sub
Again, this macro may only be truly useful for those using Windows 3.11 or Windows NT 3.x. If you are using a newer version of Windows, then the current time is normally displayed at the right side of the task bar.
Tip #111 applies to Microsoft Word versions: 6 95
Ultimate Library! An amazing resource that brings together, in one place, the collected knowledge of everything ever published in WordTips. The library combines two powerful elements to make you more productive: solutions and convenience. Here's where you get your own copy of everything ever published in WordTips.
Check out WordTips Ten-Year Library today!
Discover how to use Word's mail merge tool to create your own custom documents in just minutes. Great e-book answers all your questions. (more information...)
Ask a Word Question
Make a Comment
Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips