Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
DJ DJ is offline
external usenet poster
 
Posts: 13
Default VB code for disabling

Is there a way to disable a user's access to the VB code
in an excel workbook?

Is there a way to make the workbook close if the user
options not to enable macros?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VB code for disabling

In VBA, bring down the tools menu, select Project Properties, click the protection tab, then use the password facility. only special software will crack this password
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default VB code for disabling

<<disable a user's access to the VB code in an excel workbook?
Use Tools/VBA Project Properties to set a password.

<<Is there a way to make the workbook close if the user options not to
enable macros?
No - because this would require a macro to run.

The usual method is to hide (and password protect) all the sheets but
one which says something like "Macros must be enabled to use this
workbook." You can then put code in the Workbook_Open() event which
hides this sheet and makes the others visible. If macros are not
enabled, the user cannot get access.

Regards
BrianB
================================================== =======





"DJ" wrote in message ...
Is there a way to disable a user's access to the VB code
in an excel workbook?

Is there a way to make the workbook close if the user
options not to enable macros?

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
Disabling Cut and Copy Varne Excel Discussion (Misc queries) 13 August 21st 08 03:12 PM
Disabling macros EllenM Excel Discussion (Misc queries) 1 February 26th 08 04:57 PM
enabling/disabling a set of code from within a spreadsheet sheet Roger on Excel Excel Discussion (Misc queries) 2 November 17th 07 05:04 PM
Disabling Sheet Code Stuart[_8_] Excel Programming 2 October 2nd 03 12:34 AM
Auto_Open disabling Tritan Excel Programming 6 July 22nd 03 11:48 AM


All times are GMT +1. The time now is 12:09 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"