Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
<<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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Disabling Cut and Copy | Excel Discussion (Misc queries) | |||
Disabling macros | Excel Discussion (Misc queries) | |||
enabling/disabling a set of code from within a spreadsheet sheet | Excel Discussion (Misc queries) | |||
Disabling Sheet Code | Excel Programming | |||
Auto_Open disabling | Excel Programming |