Article ID: 132535 - Last Review: June 6, 2003 - Revision: 2.1 PRB: Releasing Object Variable Does Not Close Microsoft ExcelThis article was previously published under Q132535 On This PageSYMPTOMS
The CREATEOBJECT function can be used to create a reference to an instance
of Microsoft Excel and assign that reference to a variable. However,
releasing that variable does not cause the instance of Excel to quit.
Inadvertently creating multiple instances of Excel can cause a variety of error messages, depending on the machine configuration and Windows version. These error messages include:
"Insufficient Memory" "Not enough memory" "Page Fault" RESOLUTION
If you are running Microsoft Excel 5.0, use the following code to close all
instances of Microsoft Excel:
If you are using Microsoft Office 2000 or Microsoft Office XP change the following code: For additional information, click the article number below to view the article in the Microsoft Knowledge Base: 153025
(http://support.microsoft.com/kb/153025/EN-US/
)
FIX: Microsoft Excel 95 Doesn't Respond Correctly toGetObject
NOTE: The DECLARE statements in the above example are case-sensitive and
the functions must be called just as in the example.
STATUS
This behavior is by design.
MORE INFORMATIONSteps to Reproduce BehaviorRun the following code to create five instances of Microsoft Excel, none of which are visible: | Article Translations
|
Back to the top
