How to Programmatically Enable Trust for VBA Project.

Posted by kumarp on Stack Overflow See other posts from Stack Overflow or by kumarp
Published on 2010-06-07T23:00:18Z Indexed on 2010/06/07 23:02 UTC
Read the original article Hit count: 184

Filed under:

Getting the following error when trying to open a word document with macros to fill in the form fields: HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Word\Security\AccessVBOM.

The user opening the word document does not have admin rights and the AccessVBOM flag is either not available or set to zero. I can set the flag for the HKCU (Current user) programmaticallybut cannot change setting for inunder HKLM .

Please advise how can we enable the trust for the VBA project programmatically.

Thx Kumar

© Stack Overflow or respective owner

Related posts about word-vba