Excel: Button Fails to Run Correct MacroLast reviewed: November 2, 1994Article ID: Q67462 |
SUMMARYWhen a Microsoft Excel macro is assigned to a worksheet button or a worksheet item, it must be assigned as either an absolute reference ("Macro1!$A$1") or a name ("Macro1!My_Macro"). Assigning the macro to a relative reference ("Macro1!A1") may cause the macro to produce an error, the macro to run incorrectly, or the wrong macro to run. When relative references are used, Excel must locate the macro to be run relative to the active cell (the currently selected cell on the worksheet). Therefore, if a button is assigned to Macro1!A1, and A1 is highlighted on the worksheet, the macro will run normally. However, if B1 is highlighted on the worksheet, Excel will search for a macro at Macro1!B1. For more information on worksheet buttons, see page 584-589 of the "Microsoft Excel User's Guide" version 3.0 manual.
|
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |