
Tips.Net > WordTips Home > Macros > WordBasic Examples > Determining if Num Lock is On with WordBasic
Summary: Use this bit of WordBasic code to figure out if the Num Lock key is engaged. (This tip works with Microsoft Word 6, and Word 95.)
When you are creating a macro for use in Word, you may want to determine if the Num Lock key is enabled. If you are creating a WordBasic macro, you can use the following code:
If SelInfo(22) Then
Print "The Num Lock key is on"
Else
Print "The Num Lock key is off"
End If
The SelInfo(22) function returns TRUE if the Num Lock key is on.
Tip #1205 applies to Microsoft Word versions: 6 95
Great Idea! Word is a tool to get what you really want—printed output. This means you need to make sure that Word works as well as possible with your printer, whether it is sitting on your desk or in a room down the hall.
Check out WordTips: Printing and Printers today!
It doesn't matter if you are a beginner or expert, the WordTips archives are the fastest way to improved productivity. (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