XL98: Warning Appears When You Use GetObject to Open Workbook (182719)
The information in this article applies to:
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q182719 SYMPTOMS
If you run a Microsoft Visual Basic for Applications macro that uses the
GetObject method to open a Microsoft Excel workbook, you may receive the
following error message:
The workbook you are opening contains macros. Some macros may contain
harmful viruses. If you are sure this workbook is from a trusted
source, click Yes. If you are not sure and want to prevent any macros
from running, click No.
The macro pauses until you click Yes, No, or Cancel. Note that if the macro
is designed to run unattended, this behavior may cause a problem.
CAUSE
You may receive this error message when the following conditions are true:
WORKAROUND
To prevent this problem from occurring, disable Macro Virus Protection in
Microsoft Excel 98 Macintosh Edition. Note that making Macro Virus
Protection unavailable makes it possible (although unlikely) for a macro
virus to infect your Microsoft Excel workbooks.
To make Macro Virus Protection unavailable in Microsoft Excel 98 Macintosh
Edition, follow these steps:
- On the Tools menu, click Preferences.
- Select the General tab.
- Click to clear the Macro Virus Protection check box.
- Click OK.
Note that you cannot programmatically disable the Macro Virus Protection
feature. Also, you cannot programmatically detect whether the feature is
available or unavailable; you must do this manually.
Modification Type: | Minor | Last Reviewed: | 1/28/2005 |
---|
Keywords: | kbdtacode kberrmsg kbprb kbProgramming KB182719 |
---|
|