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:
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:
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:
- If UFIControls is equal to 1 (least secure), 3 or 5: Load (no prompt) the ActiveX control in un-safe mode with the document persisted property values if they exist otherwise with default properties (InitNew).
- If UFIControls is equal to 2, 4 (most secure) or 6 (default setting): Load (no prompt) the ActiveX control in safe mode with the document persisted property values if they exist otherwise with default properties (InitNew).
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:
- Click Yes to continue in the warning message.
- Change the registry setting to UFIControls = 1.
- Contact the author of the ActiveX control to make their ActiveX control SFI.
Change the registry settings to UFIControls = 1To modify the registry and add the UFIControl subkey, follow these steps:
- Click Start, click Run, type regedit, and then click OK.
- Expand the following registry subkey:HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\Common
- Right-click Common, point to New, and then click Key.
- Type Security, and then press ENTER to name the new subkey.
- Right-click Security, point to New, and then click DWORD Value.
- Type UFIControls, and then press ENTER to name the value.
- Double-click UFIControls.
- In the Value data box, type 1, and then click OK.
Note The available settings for UFIControls are 1 through 6. The most secure setting is 4. The default setting is 6, and the least secure setting is 1. For more information about the valid values for this DWORD Value, see the "Information about the UFI control settings for Active X components" section.
- Quit Registry Editor.
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:
|Value Data:||[ 1 | 2 | 3 | 4 ]|
Description of the value dataThe value data can be explained as follows:
- Use 1 for a UFI or SFI signed control that supports safe and unsafe mode, load the control in unsafe mode. For an SFI signed control that only supports a safe mode configuration, load the control in safe mode.
- Use 2 (default setting) for a UFI signed control, if the user responds with a Yes to the prompt, load the control in unsafe mode. If the user responds with a No, load using the default properties. For an SFI control that supports both a safe and unsafe mode, if the user responds to the prompt with a Yes, load the control in unsafe mode. If the user responds with a No, load the control using safe mode. If the SFI control can only support safe mode, load the control in safe mode.
- Use 3 for a UFI signed control, if the user responds with a Yes to the prompt, load the control in unsafe mode. If the user responds with a No, load the control with its default properties. For an SFI control, load in safe mode.
- Use 4 for a UFI signed control, load with the default properties of the control. For an SFI control, load in safe mode (considered to be the safest mode).
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.
Office 2003Office XP
Artikelnummer: 827742 – Letzte Überarbeitung: 26.04.2012 – Revision: 1