After you add the
XLM key to the registry, you cannot disable XLM macros. This section
of this article describes the behavior of Excel after you add 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 usually safe to disable macros, but if the
macros are legitimate, you may 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. The XLM macros are available to run. If you click
No, the workbook does not open.
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. The XLM macros are available to run.
If you click
No, the workbook does not open. Visual Basic
macros are not enabled.