PRB: Microsoft Excel Not Registered in Running Object Table (147573)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q147573 SYMPTOMS
According to Visual FoxPro Help, the following command will create a
reference to a running instance of Microsoft Excel:
oleApp = GETOBJECT(,"Excel.Application")
However, with Microsoft Excel version 7.0, this command can cause the
following error even if Microsoft Excel is running:
OLE error code 0x800401e3: Operation unavailable
CAUSE
Previous versions of Microsoft Excel register the application object in the
OLE RunningObjectTable (ROT) on startup. This would happen under all
circumstances, whether Microsoft Excel was Launched using OLE or not.
Microsoft Excel 7.0 does not register the application object in the ROT on
startup by default. However, Microsoft Excel 7.0 registers itself in the
ROT in any of the following situations:
RESOLUTION
In Visual FoxPro, send a WM_USER+18 message to the Main window of Microsoft
Excel to force Microsoft Excel to register itself in the ROT.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 9/24/2003 |
---|
Keywords: | kbcode kbprb KB147573 |
---|
|