FIX: Changes Made to Excel CommandBars Through Automation Are Not Saved (241652)
The information in this article applies to:
- Microsoft Excel 2000
- Microsoft Excel 97 for Windows
This article was previously published under Q241652 SYMPTOMS
When you make changes to the Microsoft Excel CommandBars through Automation, the changes are applicable only in the instance of Excel that is being automated. The changes made do not appear in later instances of Excel.
CAUSE
Excel does not save menu and toolbar changes when being automated.
RESOLUTION
To resolve this problem, obtain Microsoft Office 2000 Service Release 1/1a (SR-1/SR-1a).
To obtain SR-1/SR-1a, click the
article number below to view the article in the Microsoft Knowledge Base:
245025 OFF2000: How to Obtain and Install Microsoft Office 2000 Service Release 1/1a (SR-1/SR-1a)
To Temporarily Work Around This Problem
If all Automation references are released before Excel is shut down, Excel assumes it is exiting per instruction from the end user, and any CommandBar changes are saved for the current user. See the example below for a demonstration of how this can be accomplished programmatically.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This problem was corrected in Microsoft Office 2000 SR-1/SR-1a.
REFERENCESFor additional information on adding a VBA macro dynamically, click the article number below
to view the article in the Microsoft Knowledge Base:
194611 HOWTO: Create and Call an Excel Macro Programmatically From VB
Modification Type: | Major | Last Reviewed: | 12/15/2003 |
---|
Keywords: | kbAutomation kbbug kbfix KB241652 |
---|
|