AccessVBOM to 1 under the respective key under an Office's Security key, for example HKCU\Software\Microsoft\Office\x.y\Excel\Security MS-Office has the function grant-msOfficeVBAAccess which sets the AccessVBOM value in the registry.