The information in this article applies to:
SUMMARY
In Microsoft Excel 98 Macintosh Edition, 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.
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.asp Sample Visual Basic ProcedureThis code turns off keyboard entry for the active sheet only. To turn keyboard entry back on, press CTRL+D.
Excel 4.0 Macro ExampleThe following macro example turns on Data Entry mode. The keystroke CTRL+D initiates the second macro which turns Data Entry mode off. The macro assumes that all cells on the worksheet are locked.
The function ENTER.DATA() turns on Data Entry mode and allows you to
enter data into unlocked cells. This function does not allow you to
enter data into locked cells on the worksheet.
NOTE: You can turn off Data Entry mode by pressing the ESC key. If you use the number 2 for the logical argument, you will not be able to turn off Data Entry mode with the ESC key. REFERENCES
For more information about the OnKey method, from the Visual Basic Editor,
click the Office Assistant, type onkey, click Search, and then click to
view "OnKey Method."
Q176476 OFF: Office Assistant Not Answering Visual Basic Questions Additional query words: XL98
Keywords : kbdta xlvbahowto xlmhowto |
Last Reviewed: February 1, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |