The information in this article applies to:
SYMPTOMSIn Microsoft Excel, if you use a Visual Basic procedure to assign a macro to a custom toolbar button, you receive the following error message when you choose the button where <Assigned_Macro> is the name of the macro you assigned to the button, and <BOOK.XLS> is the name of an open workbook that contains a macro, but does not contain Assigned_Macro. CAUSE
This behavior occurs when you use a procedure contained in one workbook to
assign a macro contained in the active workbook to a toolbar button. In
this case, the name of the workbook from which you run the procedure to
assign the macro is incorrectly added to the macro name that is assigned to
the button.
This behavior occurs only when you use the xlDialogAssignToTool named constant to display the Assign Macro dialog box as in the following example: WORKAROUNDSTo avoid this behavior, do either of the following:
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. This problem was corrected in a
later version of Microsoft Excel. REFERENCES
For more information about Assigning A Macro To A Custom Button On A
Toolbar, choose the Search button in Help and type:
Additional query words: 1.00 err msg
Keywords : |
|
Last Reviewed: July 14, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |