Word.Tips.Net Welcome toWord.Tips.Net

Helpful Links

Tips.Net Home
WordTips Home

Ask a Word Question
Make a Comment

Tips.Net Store

WordTips FAQ
WordTips Premium

Learn Access Now
Free Printable Forms

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips

Advertise on the
WordTips Site

Newest Tips

Setting Fraction Bar Overhang Spacing in the Equation Editor

Printing On Both Sides of the Paper

Turning Off AutoComplete for Dates

Ordering Search and Replace

Understanding Auto Line Spacing

Adding Comments to Your Document

Conditional Calculations in Word

 

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!