XL: File Is Damaged After It Is Cleaned by Antivirus SoftwareID: Q179373
|
When you try to open, close, or save a workbook, you may receive the following error message:
When you click Details, you receive an error message similar to either of the following:This program has performed an illegal operation and will be shut down. If the problem persists, contact the program vendor.
EXCEL caused an invalid page fault in module EXCEL.EXE at 0137:3001b963.
-OR-
When you click Close, Microsoft Excel quits.EXCEL caused an invalid page fault in module KERNEL32.DLL at 0137:3001b693.
This problem occurs after you scan and clean Microsoft Excel workbooks
with an antivirus software program. The problem occurs when the file
becomes damaged while you are cleaning the workbook.
If you cannot open the workbook, please see the following article in the
Microsoft Knowledge Base:
Q142117 Excel: Summary of Methods to Recover Data from Corrupted
Files
If you can open the workbook, use either of the following methods to
repair the damaged workbook.
Sub CleanBook()
Dim iCtr As Integer
iCtr = 0
For Each Sh In ActiveWorkbook.Sheets
If Sh.Visible = xlVeryHidden Then
Sh.Visible = True
If InStr(Sh.Name, "*") > 0 Then
iCtr = iCtr + 1
Sh.Name = "NewSheet" & iCtr
End If
End If
Next Sh
Call BadSheet
MsgBox "Number of damaged sheets = " & iCtr
Application.Dialogs(xlDialogSaveAs).Show
End Sub
Sub BadSheet()
Application.DisplayAlerts = False
For Each Sh In ActiveWorkbook.Sheets
If InStr(Sh.Name, "NewSheet") > 0 Then
Sh.Delete
End If
Next Sh
End Sub
Additional query words: XL97 XL7 XL5 asterisk PLDT97 PLDT Laroux E corrupted corrupt
Keywords : kberrmsg kbdta kbdtacode xlloadsave xlgpf
Version : WINDOWS:5.0,5.0c,7.0,97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: July 8, 1999