Select a product
- Select a category.
Enable Microsoft Visual Basic for Applications project creation
Enables creations of VBA projects when you open (or create) a document that does not already contain a project. If you clear this check box, you will not be able to create a macro in a document that does not already contain a project.
Registry Information
| Vendor | Microsoft |
|---|---|
| Product | Microsoft Visio 2016 |
| Category | Microsoft Visio 2016 › Visio Options › Security › Macro Security |
| Applies to | User Configuration |
| Supported on | Windows7 |
| Registry Key | [HKCU]softwarepoliciesmicrosoftoffice16.0visioapplication |
| Value Name | createvbaprojects |
| Type | REG_SZ |
| Enabled value | 1 |
| Disabled value | 0 |
Registry File (.reg)
Windows Registry Editor Version 5.00
; Enable the policy
[HKEY_CURRENT_USERsoftwarepoliciesmicrosoftoffice16.0visioapplication]
"createvbaprojects"="1"
; Disable the policy
[HKEY_CURRENT_USERsoftwarepoliciesmicrosoftoffice16.0visioapplication]
"createvbaprojects"="0"PowerShell
# Enable the policy
Set-ItemProperty -Path "HKCU:softwarepoliciesmicrosoftoffice16.0visioapplication" -Name "createvbaprojects" -Value "1" -Type String
# Disable the policy
Set-ItemProperty -Path "HKCU:softwarepoliciesmicrosoftoffice16.0visioapplication" -Name "createvbaprojects" -Value "0" -Type String