Excel: Macro Error Using UNLOCKED.NEXT() or UNLOCKED.PREV()Last reviewed: November 29, 1994Article ID: Q87300 |
The information in this article applies to:
SUMMARYIn version 4.0 of Microsoft Excel for Windows, with the Alternate Navigation Keys option selected, a macro that calls UNLOCKED.NEXT() or UNLOCKED.PREV() returns a macro error. The same macro runs without error in version 3.0 of Excel. You can prevent the macro error by disabling Alternate Navigation Keys.
MORE INFORMATIONThe Alternate Navigation Keys option provides an alternate set of keyboard actions for moving, selecting and entering data in Excel. In version 4.0 of Excel, the TAB and SHIFT+TAB key functions, under the Alternate Navigation Keys option, were changed to help make the transition from Lotus 1-2-3 easier. The macro error results from these changes. In versions 2.0, 3.0 and 4.0 of Excel, UNLOCKED.NEXT() and UNLOCKED.PREV() are equivalent to pressing TAB or SHIFT+TAB on a protected worksheet. In version 4.0 of Excel, the Alternate Navigation Keys option maps TAB to PAGE RIGHT and SHIFT+TAB to PAGE LEFT. To see if the Alternate Navigation Keys option is selected, choose Workspace from the Options menu. To disable Alternate Navigation Keys:
A1: =WORKSPACE(,,,,,,,,,,,,FALSE) A2: =UNLOCKED.NEXT() A3: =WORKSPACE(,,,,,,,,,,,,TRUE) A3: =RETURN() Note: The Alternate Navigation Keys option is the thirteenth argument to WORKSPACE(). The 12 commas must be entered as place holders for the previous arguments for Excel to interpret the function correctly.
REFERENCES"Microsoft Excel Function Reference," version 4.0, pages 442, 465-466 "Microsoft Excel User's Guide 1," version 4.0, pages 568-570
|
KBCategory: kb3rdparty
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |