Macros to Disable Keyboard Input (101567)
The information in this article applies to:
- Microsoft Excel 97 for Windows
This article was previously published under Q101567 SUMMARY
In Microsoft Excel, to disable all the keys on the keyboard, set the
Microsoft Visual Basic for Applications DataEntryMode property or use the
Microsoft Excel 4.0 macro ENTER.DATA() function.
Note that you can also disable keys on the keyboard with the ON.KEY()
function, but this function will not allow you to disable keys such as the
SPACEBAR or the PLUS SIGN (+).
REFERENCES
For more information about the DataEntryMode property, click the Index tab
in Microsoft Excel version 7.0 and 97 Help, type the following text
and then double-click the selected text to go to the "DataEntryMode
property" topic.
For additional information about getting help with Visual Basic for
Applications, please see the following article in the Microsoft Knowledge
Base:
163435 VBA: Programming Resources for Visual Basic for Applications
"Function Reference," version 4.0, pages 132-133, 302-303
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB101567 |
---|
|