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

Merging Table Cells

Collapsing and Expanding Subdocuments

Zooming With the Keyboard

Initiating a New Search

Converting Word for DOS Documents

Two Keys with the Press of One

Opening the Document Map by Default

 

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

Tremendous Table Tips! We often take tables for granted, but Word includes some very powerful ways you can present your tabular data. Discover how to make your tables better, easier to understand, and more effective.
 
Check out WordTips: Terrific Tables today!