Select the product you need help with
How to use the Application.AutomationSecurity property in Office v.X and in Office 2004 for MacArticle ID: 886633 - View products that this article applies to.
For a Microsoft Office XP version of this article, see 317405
(http://support.microsoft.com/kb/317405/
)
.
On This PageINTRODUCTIONThe Application.AutomationSecurity property allows the Microsoft Office programs that are listed in the "Applies to" section to support security for solutions that programmatically open a document but are not sure whether the macros in a document are safe. A developer may want to control whether the Office solution displays the security warnings to the user for these documents. This article describes how a developer can use the Application.AutomationSecurity property to control the security warning that appears in Microsoft Office for Mac programs. Note You may have to update your Microsoft Office for Mac program to use the Application.AutomationSecurity property. Microsoft Office 2004 for Mac To use the Application.AutomationSecurity property on a computer that has a Microsoft Office 2004 for Mac program installed, install Microsoft Office 2004 for Mac Service Pack 1 (11.1.0). For additional information about how to obtain the Microsoft Office 2004 for Mac Service Pack 1 (11.1.0), click the following article number to view the article in the Microsoft Knowledge Base: 883951
(http://support.microsoft.com/kb/883951/
)
Description of the Microsoft Office 2004 for Mac service pack 1 (11.1.0)
Microsoft Office X for Mac To use the Application.AutomationSecurity property on a computer that has a Microsoft Office X for Mac program installed, install Microsoft Office v. X for Mac Security Update (10.1.6). For additional information about how to obtain the Microsoft Office v.X for Mac Security Update (10.1.6), click the following article number to view the article in the Microsoft Knowledge Base: 883952
(http://support.microsoft.com/kb/883952/
)
Description of the Microsoft Office v.X for Mac Security Update (10.1.6)
MORE INFORMATIONAutomationSecurity propertyMicrosoft WordMicrosoft Word now supports an additional level of security that affects macros that open other Office documents that contain macros.The setting must be enabled as part of the Microsoft Visual Basic for Applications (VBA) macro code. You can use the Application.AutomationSecurity property to set the level of security as listed in the following table: Collapse this table
The Application.AutomationSecurity property interacts with the Warn before opening a file that contains macros preference in the following ways:
Microsoft PowerPointSecurity in Microsoft PowerPoint has been improved when you open a document that contains macros. Additionally, PowerPoint supports an additional level of security that affects macros that open other Office documents that contain macros.The setting must be enabled as part of the VBA macro code. You can use the Application.AutomationSecurity property to set the level of security as listed in the following table: Collapse this table
The Application.AutomationSecurity property interacts with the Enable macro virus protection preference in the following ways:
Microsoft ExcelMicrosoft Excel now supports an additional level of security that affects macros that open other Office documents that contain macros.The setting must be enabled as part of the VBA macro code. You can use the Application.AutomationSecurity property to set the level of security as listed in the following table: Collapse this table
The Application.AutomationSecurity property interacts with the Warn before opening a file that contains macros preference in the following ways:
Sample codeMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.ImplicationsIf the Application.AutomationSecurity property is set to msoAutomationSecurityByUI and the Warn before opening a file that contains macros preference is selected, you receive a warning dialog box whenever a macro tries to open a file that contains a macro. If you click Do Not Open to deny this attempt, you receive the following error message.Run-time error '4198' Command failed
PropertiesArticle ID: 886633 - Last Review: September 12, 2011 - Revision: 6.0 APPLIES TO
|


Back to the top








