XL98: "Not Enough Memory" Error Adding Chart to WorkbookLast reviewed: February 2, 1998Article ID: Q179679 |
The information in this article applies to:
SYMPTOMSWhen you attempt to add a new chart to a workbook in Microsoft Excel 98 Macintosh Edition, you may receive the following error message:
Not enough memory.If you are using a Visual Basic for Applications macro to add chart sheets to a workbook, you may also receive the following error message:
Run-time error '1004': Method 'Add' of object 'Sheets' failed CAUSEThis problem may occur if you add more than 123 or 124 charts to a workbook in Microsoft Excel 98 Macintosh Edition. This is a limitation in Microsoft Excel 98 Macintosh Edition. Note that the problem may occur when you add fewer than 124 charts, especially if you use multiple fonts in worksheets in the workbook or if you use embedded charts. Also, note that if the workbook contains charts that have been added in earlier versions of Microsoft Excel, the workbook may contain more than 124 charts.
WORKAROUNDYou may be able to work around this limitation by clearing the Auto Scale option for fonts in charts. To do this, follow these steps:
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONIn Microsoft Excel 98 Macintosh Edition, there is a limit of 256 fonts that may be used by the program. When you create a chart, the chart uses two fonts if the Auto Scale check box for that chart is selected (the default behavior in Microsoft Excel 98 Macintosh Edition). For example, it is possible to exceed the limit of fonts by creating a workbook that contains the objects that are listed in the following table.
Objects Fonts per object Fonts used ---------------------------------------------------------------- 124 chart objects 2 fonts 248 fonts 1 worksheet 1 font 1 font used by Microsoft Excel 6 fonts 6 fonts Total 255 fontsIf you attempt to add another chart to the workbook, the total number of fonts used would be 257. Because this would exceed the limit of 256 fonts, you receive a "Not enough memory" error message. Clearing the Auto Scale check box for each chart may allow you to extend the maximum number of charts that can be added to the workbook.
|
Additional query words: XL98
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |