Article ID: 827742 - Last Review: October 16, 2007 - Revision: 9.8 You are prompted to grant permission for ActiveX Controls when you open an Office XP or Office 2003 documentOn This PageSYMPTOMSWhen you open a document in one of the Microsoft Office programs listed in the "Applies to" section, you may be prompted to grant permission for ActiveX Controls to be loaded or to permit the controls to maintain persisted data. Some ActiveX Controls may not load at all. Additionally, when you import an Office document that contains ActiveX Controls to another program such as a Microsoft SharePoint Team Services Web site, you may receive a warning message that is similar to the following: This application is about to initialize ActiveX
Controls that might be unsafe. If you trust the source of this document,
select Yes and the control will be initialized using your document settings. CAUSEThis problem occurs when you try to open a document that contains ActiveX Controls that are marked as unsafe for initialization (UFI). By default, the Office programs do not load or activate ActiveX Controls that are not marked as safe for initialization (SFI). This problem also applies to the ActiveX Controls that are included with the Office programs. Additionally, Winsock is not registered as an SFI control. For this reason, ActiveX Controls that have not implemented IObjectSafety are handled as UFI controls. Additionally, ActiveX Controls that have not marked the appropriate component category in the registry are also handled as UFI controls. WORKAROUNDNote We highly recommend that you do not run ActiveX Controls in documents that are submitted to you by people who you do not know because there is no guarantee that the data that is associated with the control is actually safe to use. However, if you trust the source of the document and the individual or the company that sent it to you, you can load the control and permit it to use persisted data. Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows To work around this problem and change the way that the Office programs treat ActiveX components, add the UFIControls key to the registry that changes the Office programs behavior. For more information about how to do this, see the "Change the registry settings to UFIControls = 1" section. Information about the UFI control settings for ActiveX componentsWhen the control is SFI, the Office programs behave the same:
Note Every subkey that is listed under the HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\Common\Security registry key has an equivalent subkey under the following registry keys:
Office 2003 http://www.microsoft.com/office/ork/2003/tools/BoxA03.htm
(http://www.microsoft.com/office/ork/2003/tools/BoxA03.htm)
Office XPhttp://www.microsoft.com/office/ork/xp/appndx/appa04.htm
(http://www.microsoft.com/office/ork/xp/appndx/appa04.htm)
Change the registry settings to UFIControls = 1To modify the registry and add the UFIControl subkey, follow these steps:
Forms3 and ActiveX initialization (Office 2003 and Office XP)By using the common security registry key, you can instruct the Office 2003 and Office XP programs to set Forms3 ActiveX initialization security for all Office 2003 and Office XP programs that support Forms3. If the setting of the key is 2 or 3, the user is prompted to determine how Forms3 forms will load. The prompt only appears one time per session in a program. The location of the registry key is the following:HKEY_CURRENT_USER\Software\Microsoft\VBA\Security In either the registry or policy node, the value name LoadControlsInForms can be set to the following values and respective actions.Collapse this table
Description of the value dataThe value data can be explained as follows:
MORE INFORMATION
For more information about problems with
ActiveX Controls, click the following article number to view the article in the Microsoft Knowledge Base:
817112
(http://support.microsoft.com/kb/817112/
)
ActiveX controls do not load or function as expected when you open a document with Office 2003 program
ActiveX Controls are programs and can store data in either the registry or the control itself. ActiveX Controls are similar to Microsoft Visual Basic for Applications (VBA) macros except that they are compiled to a special file type and can be hosted by programs that can support them--for example, Microsoft Word 2002 and Microsoft Excel 2002. To use an ActiveX control, a control link reference is embedded in the Office document. Office programs can only preserve or migrate ActiveX control link references to new versions of the document if the ActiveX control is activated when the document is opened. A subsequent save of the document if the ActiveX control is disabled saves a version of the document without the link reference (the ActiveX control is removed). Sometimes this is not what you want because you must have the control to view some or all the content of the document. Not all file formats support ActiveX control linking. Therefore, even if the document is opened with the ActiveX control activated, it will not save it to formats that do not support ActiveX controls. Note If you let the program run the control and use persisted data, you do so at your own risk. REFERENCESFor more information about how to work more safely with ActiveX Controls, visit the following Microsoft Web site: http://msdn2.microsoft.com/en-us/library/Aa751977.aspx
(http://msdn2.microsoft.com/en-us/library/Aa751977.aspx)
For more information about ActiveX controls, see the Office Resource Kit. To do this, visit one of the following Microsoft Web sites:Office 2003 http://office.microsoft.com/en-us/ork2003/default.aspx
(http://office.microsoft.com/en-us/ork2003/default.aspx)
Office XPhttp://office.microsoft.com/en-us/downloads/CD010225181033.aspx
(http://office.microsoft.com/en-us/downloads/CD010225181033.aspx)
APPLIES TO
| Article Translations
|
Back to the top
