Article ID: 281954 - Last Review: February 1, 2007 - Revision: 3.4 How to turn off Visual Basic for Applications when deploying Office 2003 or Office XPThis article was previously published under Q281954 SUMMARY
This article describes how to disable Visual Basic for Applications during the deployment of the versions of Office that are listed in the "Applies To" section. MORE INFORMATION
Visual Basic for Applications, although not a security risk in itself, can be used by others to compromise security. For this reason, Office can be installed without Visual Basic for Applications support. The following methods can be used to remove Visual Basic for Applications support in Office. Note The Custom Maintenance Wizard and the Custom Installation Wizard can only be used with the Enterprise edition of Microsoft Office. Method 1: Custom Installation WizardNote This method can only be used with the Enterprise edition of Microsoft Office.The Custom Installation Wizard, included with the Microsoft Office Resource Kit (ORK), can be used to create a custom TRANSFORM file that is used with Setup.exe to customize the installation of Office features during Setup. To create a TRANSFORM that removes Visual Basic for Applications support during installation, follow these steps. Note To do this, you must install the ORK. You can install the ORK from the ORK folder on the Office CD for an Enterprise edition of Office.
Office 2003 http://office.microsoft.com/en-us/assistance/HA011401941033.aspx
(http://office.microsoft.com/en-us/assistance/HA011401941033.aspx)
Office XPhttp://office.microsoft.com/en-us/assistance/HA011362781033.aspx
(http://office.microsoft.com/en-us/assistance/HA011362781033.aspx)
Method 2: Custom Maintenance WizardNote This method can only be used with the Enterprise edition of Microsoft Office.The Custom Maintenance Wizard, included with the Microsoft Office Resource Kit (ORK), is used to create a Custom Maintenance Wizard customization file (CMW file) that can be used to update an existing Office installation. To create a CMW file to remove Visual Basic for Applications support, follow these steps. Note To do this, you must install the ORK. You can install the ORK from the ORK folder on the Office CD for an Enterprise edition of Office.
308263
(http://support.microsoft.com/kb/308263/
)
How to create a Custom Maintenance Wizard file for updating installation options after you deploy a custom installation of Office
Method 3: System PolicySystem Policy Editor, included with the Microsoft Office Resource Kit (ORK), can be used to turn off Visual Basic for Applications support for Office programs.Turning on the Disable VBA for Office applications policy sets the VBAOFF DWORD value to 1 in the following registry subkey: Office 2003 HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Office\11.0\Common Office XPHKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Office\10.0\Common This Registry setting prevents Excel, FrontPage, Outlook, PowerPoint, Publisher, and Word from using Visual Basic for Applications. Method 4: Stand-alone Office installationDuring or after an Office installation, you can specify the features that you want installed. To do this, follow these steps:
Method 5: Manually add the VBAOff registry subkeyThe VBAOff registry subkey can be added manually to disable VBA functionality for all users on a computer after Office has been installed. To add the VBAOff registry key, follow these steps:
For additional information about features that are turned off when Visual Basic for Applications is not installed, click the following article number to view the article in the Microsoft Knowledge Base: 281953
(http://support.microsoft.com/kb/281953/
)
Features turned off when Visual Basic for Applications is not installed
For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
287567
(http://support.microsoft.com/kb/287567/
)
Considerations for disabling VBA in Office XP
285884
(http://support.microsoft.com/kb/285884/
)
How to determine whether VBA is enabled for Office XP application
| Article Translations
|
Back to the top
