Article ID: 282830 - Last Review: October 6, 2011 - Revision: 6.0 Programmatic access to Office VBA project is denied
This article was previously published under Q282830 On This PageSYMPTOMS Code that is written to automate an Office application and
programmatically manipulate the Microsoft Visual Basic for Applications (VBA)
environment and object model may fail on Office
with one of the following error messages: From Visual Basic or VBA: Run-time error '6068': Programmatic Access to Visual
Basic Project is not trusted HRESULT = 0x800A17B4 (-2146822220) "Programmatic Access
to Visual Basic Project is not trusted" CAUSE Office
adds a security option to deliberately lock out programmatic access to the VBA
object model from any Automation client unless a user chooses to permit such
access. This is a per user and per application setting, and denies access by
default. This security option makes it more difficult for unauthorized programs to build "self-replicating" code that can harm end-user systems. RESOLUTION For any Automation client to be able to access the VBA
object model programmatically, the user running the code must explicitly grant
access. To turn on access, the user must follow these steps. Office 2003 and Office XP
Office 2007
APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
