Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 470
Default Programmatically check security of VB Project

I have a macro that I want to write code for various commandbuttons that are
created via macro. I manually put a check in the "Trust access to Visual
Basic Project" spot under ToolsMacroSecurity. But it keeps unchecking
itself.

Is there a way for me to check the status of "Trust access to Visual Basic
Project" and if there is not a checkmark, place one in there via a macro?

Thanks,
Les
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Programmatically check security of VB Project

Les, when you check the allow access box, do you exit by clicking OK or by
clicking the big red X? If you use the big red X, then you do not set the
check mark. You must click OK to exit after you put the check in the box.
It has to be manually changed back after that. I don't know of a way that it
would automatically uncheck itself. Mine has been checked for four years and
has not changed.

"WLMPilot" wrote:

I have a macro that I want to write code for various commandbuttons that are
created via macro. I manually put a check in the "Trust access to Visual
Basic Project" spot under ToolsMacroSecurity. But it keeps unchecking
itself.

Is there a way for me to check the status of "Trust access to Visual Basic
Project" and if there is not a checkmark, place one in there via a macro?

Thanks,
Les

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Programmatically check security of VB Project

Just to be as accurate as possible, the box won't uncheck itself unless you
somehow reset everything to default. The default condition is unchecked, and
that is the setting recommended by Microsoft to prevent spyware or remote
hackers from accessing your code.

"JLGWhiz" wrote:

Les, when you check the allow access box, do you exit by clicking OK or by
clicking the big red X? If you use the big red X, then you do not set the
check mark. You must click OK to exit after you put the check in the box.
It has to be manually changed back after that. I don't know of a way that it
would automatically uncheck itself. Mine has been checked for four years and
has not changed.

"WLMPilot" wrote:

I have a macro that I want to write code for various commandbuttons that are
created via macro. I manually put a check in the "Trust access to Visual
Basic Project" spot under ToolsMacroSecurity. But it keeps unchecking
itself.

Is there a way for me to check the status of "Trust access to Visual Basic
Project" and if there is not a checkmark, place one in there via a macro?

Thanks,
Les

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 470
Default Programmatically check security of VB Project

I believe I clicked on OK. Something kept happening when I would execute the
program that would cause it to crash (and I saved the workbook), but it would
be unchecked after that. I will see what happens.

Thanks,
Les

"JLGWhiz" wrote:

Les, when you check the allow access box, do you exit by clicking OK or by
clicking the big red X? If you use the big red X, then you do not set the
check mark. You must click OK to exit after you put the check in the box.
It has to be manually changed back after that. I don't know of a way that it
would automatically uncheck itself. Mine has been checked for four years and
has not changed.

"WLMPilot" wrote:

I have a macro that I want to write code for various commandbuttons that are
created via macro. I manually put a check in the "Trust access to Visual
Basic Project" spot under ToolsMacroSecurity. But it keeps unchecking
itself.

Is there a way for me to check the status of "Trust access to Visual Basic
Project" and if there is not a checkmark, place one in there via a macro?

Thanks,
Les

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alter macro security level programmatically Dale Fye Excel Programming 5 January 10th 08 08:51 PM
Supressing the Macro security message programmatically. peng wong Excel Programming 1 June 8th 05 11:55 AM
Programmatically alter the Project Explorer R Avery[_2_] Excel Programming 2 May 4th 05 01:21 PM
Assigning the Help 4, *.HLP file for a project programmatically in a protected Project Tony Seiscons Excel Programming 0 October 4th 04 03:10 PM
??Programmatically set security level to medium DG Excel Programming 8 March 1st 04 10:00 PM


All times are GMT +1. The time now is 02:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"