Microsoft KB Archive/171661
Article ID: 171661
Article Last Modified on 6/13/2001
- Microsoft Excel 97 Standard Edition
This article was previously published under Q171661
When you open a Microsoft Excel workbook, you may receive the following message:
You receive this message even when no macros exist in the workbook.
You may receive this error message when the following conditions are true:
You run a macro similar to the following to create the workbook:
Sub Make_Book() Dim x As Workbook Application.DisplayAlerts = False Set x = Workbooks.Add x.Worksheets(1).Delete x.Worksheets(1).Range("A1").Value = "test" End Sub
- You close, and then open the workbook created by this macro.
- The workbook contains a defined name that uses syntax to refer to nonadjacent cell ranges; however the defined name actually refers to adjacent cell ranges.
The last three rows in the defined name are rows greater than or equal to row 600 and increase in value from left to right.
For example, if you create a worksheet named "Plan," a defined name that refers to the following ranges causes the problem:
=Plan!$A$1:$A$1,Plan!$A$1:$A$1,Plan!$A$1:$A$1,Plan!$A$1:$A$1, Plan!$A$1:$A$1,Plan!$A$1:$A$1,Plan!$A$1:$A$1,Plan!$A$1:$A$600, Plan!$A$601:$A$602
NOTE: Other similarly defined names may also cause this behavior.
- The ThisWorkbook module is missing from the workbook in the Project Explorer window in Microsoft Visual Basic Editor.
To correct this problem, install Microsoft Excel 97 Service Release 1 (SR-1).
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 additional information about SR-1, please see the following article in the Microsoft Knowledge Base:
172475 OFF97: How to Obtain and Install MS Office 97 SR-1
In Microsoft Excel 97, the Macro Virus Protection feature is designed to prevent macro viruses, such as the ExcelMacro/Laroux virus, from running. If you select the Macro Virus Protection check box, you are prompted whether to make macros available whenever you open a workbook that contains macros.
Making Macro Virus Protection Available
To select Macro Virus Protection so that a warning message appears, follow these steps:
- On the Tools menu, click Options, and then click the General tab.
- Click to select the Macro Virus Protection check box.
The macro virus warning should not appear when you open a workbook that does not contain a macro.
For more information about macro viruses, click the Office Assistant, type "macro virus," click Search, and then click to view "About viruses and workbook macros."
NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If Microsoft Help is not installed on your computer, please see the following article in the Microsoft Knowledge Base:
120802 Office: How to Add/Remove a Single Office Program or Component
Additional query words: XL97 sr1
Keywords: kbbug kbfix KB171661