The information in this article applies to:
SYMPTOMS
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.
"Insufficient Memory" RESOLUTIONIf you are running Microsoft Excel 5.0, use the following code to close all instances of Microsoft Excel:
If you are using Microsoft Excel 7.0, use the following code:
The code is different because of a change in behavior between Microsoft
Excel 7.0 and Microsoft Excel 5.x. For more information, please see the
following article in the Microsoft Knowledge Base.
Q147573 PRB: Microsoft Excel Not Registered in Running Object TableNOTE: The DECLARE statements in the above example are case-sensitive and the functions must be called just as in the example. STATUSThis behavior is by design. MORE INFORMATIONSteps to Reproduce BehaviorRun the following code to create five instances of Microsoft Excel, none of which are visible:
Releasing the variable x does not terminate the instance of Microsoft
Excel. To ensure that each instance is terminated, add the following
command immediately before the RELEASE x command:
To test if an instance of Microsoft Excel exists use this function:
This returns an OLE error if no instance of Microsoft Excel is in memory.
REFERENCESFor more information about the GETOBJECT function, please see the following article in the Microsoft Knowledge Base: Q128994 Behavior of GETOBJECT() with Excel and Word for Windows Additional query words: VFoxWin
Keywords : kbVFp300 kbVFp500 kbVFp600 FxinteropExcel |
Last Reviewed: August 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |