bottom
Great WordTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > WordTips Home > Macros > WordBasic Examples > Determining if Num Lock is On with WordBasic

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!

Helpful Links

Ask a Word Question
Make a Comment

Tips.Net Home
Tips.Net Store

WordTips FAQ
WordTips Premium

Learn Access Now

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

Advertise on the
WordTips Site

 

Great Info!

Get tips like this every week in WordTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)