Excel: {ENTER} with ON.KEY Differs Between VersionsLast reviewed: November 3, 1994Article ID: Q79086 |
The information in this article applies to:
SUMMARYWhen you use the ON.KEY function with "{ENTER}" or "~" as the key text, the ENTER key needs to be pressed twice in Microsoft Excel version 2.1 to run the macro specified. The ENTER key only needs to be pressed once in Microsoft Excel versions 3.0, 4.0, 4.0a, or 5.0 to cause the macro to run.
MORE INFORMATIONThe following macro, which displays an alert box when the ENTER key is pressed, illustrates the differences in the two versions.
Steps to Reproduce Problem
Note that the problem occurs in version 2.1 only when the formula bar is active. If the ENTER key is pressed when the formula bar is not active, it needs to be pressed only once to display the alert box. Note that the problem also occurs when using "{ENTER}" in place of "~"; however, "{ENTER}" corresponds with the numeric keypad's ENTER key in Excel 3.0 or 4.0, and NOT the ENTER key on the keyboard. In version 2.1, it corresponds with either ENTER key.
REFERENCES"Microsoft Functions Reference Manual," version 3.0, page 165 "Microsoft Functions and Macros," version 2.1, page 321
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |