XL: Unexpected Behavior with Attached ToolbarsLast reviewed: February 2, 1998Article ID: Q125847 |
The information in this article applies to:
SUMMARYIn Microsoft Excel, custom toolbars can be attached to workbooks to allow the toolbar to be stored in the document, and these toolbars can be made available when the document is opened. However, the attached toolbar may not appear as expected when either of the following conditions is true:
To ensure that an attached toolbar is updated when the toolbar is modified, you must choose Attach Toolbars from the Tools menu and re-copy the toolbar to the worksheet each time you modify the toolbar.
MORE INFORMATION
Attached Toolbar Is Not LoadedIf a custom toolbar attached to a workbook has the same name as an existing custom toolbar in the current Microsoft Excel session, the attached toolbar will not replace the existing toolbar when the workbook is opened. Any Visual Basic macro code that references the attached toolbar will instead reference the pre-existing toolbar. For example, if a currently running Microsoft Excel session has an existing toolbar named "My Toolbar," and you open a file that has an attached toolbar also named "My Toolbar," Microsoft Excel will not load "My Toolbar" from the file. If a Visual Basic macro subsequently issues the command
Toolbars("My Toolbar").Visible=Truethe pre-existing toolbar in the Microsoft Excel session will be displayed rather than the recently attached toolbar.
Attached Toolbar Reverts to Previous VersionIf you attach a custom toolbar to a workbook, modify it, and then save the workbook, the attached toolbar will not reflect any changes made after the toolbar has been attached. You will not notice this behavior until you open the workbook on a different computer. For example, you will notice this problem if you do the following:
REFERENCES"Microsoft Excel User's Guide," version 5.0, page 638 "Microsoft Excel Visual Basic User's Guide," version 5.0, pages 262-264
|
Additional query words: 7.00 5.00 8.0 8.00 xl97 xl7 commandbars
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |