The information in this article applies to:
SYMPTOMSIn Microsoft Excel 97, when you open a workbook, you may receive the following error message: If you click Details, you receive an error message similar to either of the following:
-or-
CAUSE
This problem may occur if the following conditions are true:
-and- WORKAROUNDIf this problem occurs, you cannot open the workbook. You may be able to recover data contained within the workbook if you follow the steps shown in the following articles in the Microsoft Knowledge Base: Q142117 Excel: Summary of Methods to Recover Data from Corrupted Files Q147216 XL: Linking to Data in a Damaged File (5.0 and Later)To prevent this problem, do not use Data Access Objects to add or modify records in a Microsoft Excel 97 workbook if the workbook contains formulas that refer to functions in the Analysis ToolPak. STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem no longer occurs in Microsoft Excel 2000. MORE INFORMATIONMicrosoft 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.aspIn Microsoft Excel 97, you can use Data Access Objects in a Visual Basic for Applications macro to add, remove, or modify records in a database. If the database is in a Microsoft Excel 97 workbook, you can add a record to the list in the workbook by using a macro similar to the following sample code:
If you run this macro, a new record containing the value 1 is added to the
list in Sheet1 of Test.xls. However, if Test.xls contains a formula that
refers to a function included in the Analysis ToolPak, you cannot open
Test.xls after running this macro.
Additional query words: XL97 ipf atp
Keywords : kbcode kberrmsg kbprg xlloadsave xlvbainfo xlgpf xldao |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |