Microsoft KB Archive/60944

{| = Excel: ON.KEY Function Docerr in Functions and Macros Manual =
 * width="100%"|

Last reviewed: November 2, 1994

Article ID: Q60944

SUMMARY
Page 252 of the &quot;Microsoft Excel Functions and Macros&quot; version 2.2 manual incorrectly states that &quot;=ON.KEY(&quot;+^{RIGHT}&quot;,&quot;PAYROLL!Print&quot;)&quot; allows the macro &quot;PAYROLL!Print&quot; to be run using the command sequence SHIFT+COMMAND+RIGHT ARROW.

To correctly use the key sequence SHIFT+COMMAND+RIGHT ARROW to run the macro PAYROLL!Print, use the following formula:

=ON.KEY(&quot;+*{RIGHT}&quot;,&quot;PAYROLL!Print&quot;) The caret (^) in the incorrect formula defines the CTRL key, while the asterisk (*) in the correct formula defines the COMMAND key. (This key code information is correctly listed on page 309 of the &quot;Microsoft Excel Functions and Macros&quot; version 2.2 manual.) For more information on key codes, see Appendix B (pages 307-309) of the &quot;Microsoft Excel Functions and Macros&quot; version 2.2 manual.
 * }