PDA

View Full Version : setting "trust access to visual basic project" programmatically?



gopi09_m
04-26-2008, 11:37 PM
Hi,

Can we set the (Macro->Security->Trusted sources -> trust access to visual basic project) programmatically?

Regards,
Krrishna

Aussiebear
04-26-2008, 11:44 PM
Hi gopi09_, In all seriousness, you will not recieve any help from this forum on this issue. To do so would breech Excel's security. Please don't ask for this sort of help here.

Simon Lloyd
04-27-2008, 12:56 AM
This is directly related to this (http://vbaexpress.com/forum/showthread.php?t=19218)

Bob Phillips
04-27-2008, 02:34 AM
I don't think so. The best you can do is to check it in code, and if not set, tell the user and ask them to set it.

stanl
04-27-2008, 04:24 AM
I don't think so.

Actually it is pretty easy, but in keeping with AussieBear's comment should not be posted on a forum such as this.:think:

Aussiebear
04-28-2008, 02:37 AM
Thank you Stanl.:yes