SYMPTOMS
When 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.
If you click
No, the ActiveX Controls do not load. If you click
Yes, the ActiveX Controls load.
WORKAROUND
Note 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.
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.
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 components
When 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).
UFIControls = 4 is the most secure setting because it does force the Office programs to load UFI controls with default properties but to avoid user confusion with a new behavior for UFI, the default for
UFIControls = 6 because the UFI controls load with document persisted property.
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:
- HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Office\Common\Security
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Common\Security
In Office XP, UFI controls will bring a dialog box before loading, but in the Office programs they were initialized silently. To see the file as they did with Office XP, users must use one of the following methods:
- 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.
Administrators can set the default by using the Custom Installation Wizard (CIW). For more information about the CIW, see the Office Resource Kit. To do this, visit one of the following Microsoft Web sites:
Office 2003Office XPChange the registry settings to UFIControls = 1
To 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:
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.
Value name: | LoadControlsInForms |
Value type: | REG_DWORD |
Value Data: | [ 1 | 2 | 3 | 4 ] |
Description of the value data
The 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).