以MS Office 2007 为例:- @echo off
- reg add "HKCU\Software\Microsoft\Office\12.0\Excel\Security" /v VBAWarnings /t REG_DWORD /d 0x1 /f
- reg add "HKCU\Software\Microsoft\Office\12.0\Excel\Security" /v AccessVBOM /t REG_DWORD /d 0x1 /f
- reg add "HKCU\Software\Microsoft\Office\Common\Security" /v UFIControls /t REG_DWORD /d 0x1 /f
复制代码
|