Article ID: 166287 - Last Review: October 12, 2007 - Revision: 1.3 Error message when using XlCoerce with Excel 97: "Unhandled Exception in Mso97.dll"This article was previously published under Q166287 On This PageSYMPTOMS
When you use XlCoerce in a dynamic-link library (DLL) that is loaded by
Microsoft Excel 97, the following error message appears
Unhandled exception in excel.exe (MSO97.DLL): 0xc0000005: Access
Violation
CAUSE
This problem occurs when the following conditions are true:
RESOLUTION
To correct this problem, install Microsoft Excel 97 Service Release 1 (SR-
1).
To temporarily work around this problem, use one of the following methods. Method 1If XLOPER does not reference any cells that contain text, use the following function to determine whether to use XlCoerce:Method 2Instead of using the R data type to pass a range or a cell that may contain text, use the OPER data type (P). This data type does not support references, but it does support arrays, numbers, Boolean values, and errors. For more information about the Register function, see the MicrosoftExcel Software Development Kit (SDK). STATUS
Microsoft has confirmed this to be a problem in Microsoft Excel 97 for
Windows. This problem was corrected in Microsoft Excel 97 SR-1.
For more information about SR-1, click the following article number to view the article in the Microsoft Knowledge Base: 172475
(http://support.microsoft.com/kb/172475/
)
How to obtain and install Microsoft Office 97 SR-1
| Article Translations
|

Back to the top
