The information in this article applies to:
SYMPTOMS
In Microsoft Excel 97, when you close the last open workbook, you may
receive an error message.
If you click Details, you receive an error message similar to the following where <xxxx:yyyyyyyy> is any of the following addresses: 014f:300f1b0a 0137:3003cf1cor any other address starting with "014f:30" or "0137:". If you are using Microsoft Windows NT Workstation 4.0, you may see the following error message:
CAUSE
This problem may occur when the following conditions are all true:
RESOLUTION
To correct this problem, obtain Microsoft Excel 97 Service Release 2
(SR-2).
Q151261 OFF97: How to Obtain and Install MS Office 97 SR-2 Temporary WorkaroundMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft Support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:http://www.microsoft.com/support/supportnet/overview/overview.aspTo work around this problem temporarily, make the Microsoft Excel 97 application object visible BEFORE you create a new workbook, or open an existing workbook or other file. For example, instead of using the following code
use this code:
When you switch the order of these two actions, the instance of Microsoft
Excel 97 that you create does not stop responding when you close the last
open workbook.
Or, you can set the UserControl property of the Excel Application object to True. For example:
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Office 97 Service Release 2 (SR-2). MORE INFORMATIONIn Visual Basic, you can use the CreateObject method to create new instances of applications. To create a new instance of Microsoft Excel 97, you use the following code:
where <objectname> is a variable that you declare as type Object.
If you create a new instance of Microsoft Excel 97, and then leave it open for the user to close, the instance of Microsoft Excel 97 may stop responding when you close the last open workbook. This behavior occurs if the Visual Basic code opened or created any documents before making the instance of Microsoft Excel 97 visible. The following Visual Basic macro demonstrates the sequence of actions that cause the problem: Additional query words: XL97 OLE Automation ipf gpf crash hang
Keywords : kberrmsg kbdta kbdtacode KbVBA xlvbmigrate offinterop |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |