Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 18th, 2004, 03:25 PM
Authorized User
 
Join Date: Aug 2003
Posts: 24
Thanks: 0
Thanked 1 Time in 1 Post
Default Programmatic access to Visual Basic Project is not

I have a template which i need to distribute to unknown number of audiance. If "Programmatic access to Visual Basic Project is not trusted" is not checked manually, i get the following error : Programmatic access to Visual Basic Project is not trusted, "Runtime error 1004"

Is there anyway that I can set the option under: Tools, Macro, Security...Trust access to Visual Basic Project through my VBA code.

Ajitpal S Padda
__________________
Ajitpal S Padda
The Following User Says Thank You to aspadda For This Useful Post:
 
Old March 19th, 2004, 05:57 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No! And a good job too; what's the point of having an option that prevents the running of unauthorised code if that option can be turned off by unauthorised code!
What you need is digitally sign your code in the first place, so that it becomes trusted. Here's a starting point for you
http://www.microsoft.com/office/ork/xp/two/admc04.htm


There are two secrets to success in this world:
1. Never tell everything you know
 
Old March 19th, 2004, 04:06 PM
Authorized User
 
Join Date: Aug 2003
Posts: 24
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks for your reply. Your are perfectly correct what you mean. But i want to use this option for programming VBE. And this is only in excel 2002 that you need to check this option to programme VBE (Like getting the names of modules, deleting VBA code etc...)

Ajitpal S Padda





Similar Threads
Thread Thread Starter Forum Replies Last Post
cant add Reference to a visual basic project tiyyob Pro VB 6 5 March 31st, 2009 05:57 PM
FTP in Visual Studio 2005 Pro (Visual Basic) shoopes VB How-To 1 June 29th, 2006 02:08 PM
Invoking Visual Basic Editor terminates Access laicm Access 1 October 19th, 2004 07:31 AM
How to access foxpro Database using Visual Basic Ling Fong Access 1 August 23rd, 2004 07:42 AM
Connecting to Access DB using Visual Basic .NET Lieth Access 6 September 26th, 2003 06:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.