Your changes to the values of the header and of the footer may not be applied in Microsoft Office Excel 2003 (893286)
The information in this article applies to:
- Microsoft Office Excel 2003
SYMPTOMSWhen you try to set the values of the header and of the footer in Microsoft Office Excel 2003 by using code in the WorkbookBeforeSave event, your changes may not be applied.CAUSEThis behavior occurs when a macro in the workbook implements the WorkbookBeforeSave event handler that tries to set the values of the header and of the footer. When the Save method of the workbook is called from a COM add-in, the code in the WorkbookBeforeSave event is executed. However, the changes to the header and to the footer are not applied.WORKAROUNDTo work around this behavior, use the following code. oXL.CommandBars("Standard").Controls("Save").Execute Use this code instead of calling the following code from the COM add-in. oXLWb.Save
Modification Type: | Major | Last Reviewed: | 3/30/2005 |
---|
Keywords: | kbBug kbtshoot kbAddIn KB893286 kbAudDeveloper |
---|
|