Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Lock an option in a menu.

One thing that I do is require a passed variable on each function or
sub, by having requireing a passed variable, the macro won't show up in
the list.

something like this

Public Sub SomeMacro(x as byte)

You can call SomeMacro you would call it like this:
SomeMacro(x)

I declare x like this usually
Public x As Byte 'used to pass to macros to keep them out of the
macro list

Hope that helps.

theSquirrel



On Dec 12, 2:10 pm, Jim Jackson
wrote:
If you have your code modules protected with a password, no one should be
able to view the macros. At least they will not be able to see the code,
even if they are able to see the list of macro names.
--
Best wishes,

Jim



"Sjakkie" wrote:
Is there a way to block the option macro in the menu "tools", "macro". The
sortcut is alt +f8. The reason i want to block this is so that no one can run
the macros in the sheet apart from the macros which are linked to buttons
within the work sheet. The option under tools allows the user to select which
macro to run and this is something i want to stop.- Hide quoted text -- Show quoted text -


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
Lock Drop down Menu Mubarak Excel Discussion (Misc queries) 2 July 15th 09 06:41 AM
Option Menu doesn't Display [email protected] Excel Discussion (Misc queries) 1 November 22nd 07 12:36 PM
Lock all menu tabs Jithu Excel Discussion (Misc queries) 3 May 29th 07 04:44 AM
Lock sheet tabs option in a specific workbook Tarique Excel Programming 3 July 8th 06 04:50 PM
Where is the scroll lock option? RustyO Excel Discussion (Misc queries) 1 February 18th 05 05:25 PM


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