- Policy ID
- L_LoadControlsinForms3
- Scope
- User Configuration
- Supported on
- At least Windows Server 2008 R2 or Windows 7
- Source
- Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
- Category
- Microsoft Office 2016 › Security Settings
Registry
loadcontrolsinforms
REG_DWORDUser
- Enabled value
- Depends on the option value
- Element
- Load Controls in Forms3:
Options
| Item | Stored value |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\software\policies\microsoft\vba\security]
; Options (use only one)
; 1
"loadcontrolsinforms"=dword:00000001
; 2
"loadcontrolsinforms"=dword:00000002
; 3
"loadcontrolsinforms"=dword:00000003
; 4
"loadcontrolsinforms"=dword:00000004
CMD
:: Options (use only one)
:: 1
reg add "HKCU\software\policies\microsoft\vba\security" /v "loadcontrolsinforms" /t REG_DWORD /d 1 /f
:: 2
reg add "HKCU\software\policies\microsoft\vba\security" /v "loadcontrolsinforms" /t REG_DWORD /d 2 /f
:: 3
reg add "HKCU\software\policies\microsoft\vba\security" /v "loadcontrolsinforms" /t REG_DWORD /d 3 /f
:: 4
reg add "HKCU\software\policies\microsoft\vba\security" /v "loadcontrolsinforms" /t REG_DWORD /d 4 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\software\policies\microsoft\vba\security' -Force | Out-Null
# Options (use only one)
# 1
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\vba\security' -Name 'loadcontrolsinforms' -PropertyType DWord -Value 1 -Force | Out-Null
# 2
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\vba\security' -Name 'loadcontrolsinforms' -PropertyType DWord -Value 2 -Force | Out-Null
# 3
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\vba\security' -Name 'loadcontrolsinforms' -PropertyType DWord -Value 3 -Force | Out-Null
# 4
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\vba\security' -Name 'loadcontrolsinforms' -PropertyType DWord -Value 4 -Force | Out-Null