After you add the
XLM key to the registry, XLM macros cannot be disabled. The following sections discuss the behavior of Excel after you have added the
XLM key to the registry:
The Workbook Contains XLM Code
When you open a workbook that contains XLM macro code, you are prompted with the following message:
Filename contains macros.
Macros may contain viruses. It is always safe to disable macros, but if the macros are legitimate, you might lose some functionality.
If you click
Enable Macros, the workbook opens and the XLM macros are available to run. If you click
Disable Macros, you receive the following message:
This workbook contains a type of macro (Microsoft Excel 4.0 macro) that cannot be disabled. There may be viruses in these macros. If you are sure this workbook is from a trusted source, click Yes. Open the workbook?
If you click
Yes, the workbook opens and the XLM macros are available to run. If you click
No, the workbook is not opened.
The Workbook Contains XLM Code and Visual Basic for Applications Code
When you open a workbook that contains both XLM code and Visual Basic code, you may receive the following message:
This workbook contains a type of macro (Microsoft Excel 4.0 macro) that cannot be disabled. There may be viruses in these macros. If you are sure this workbook is from a trusted source, click Yes. Open the workbook?
If you click
Yes, the workbook opens and the XLM macros are available to run. If you click
No, the workbook is not opened. Visual Basic macros are not enabled.