View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Jim Thomlinson Jim Thomlinson is offline
external usenet poster
 
Posts: 5,939
Default Macro Window - Prevent 'Run'

Add "Option Private Module" to the top of each code module.
--
HTH...

Jim Thomlinson


"WCM" wrote:

Hi ...

I have created an Excel Report Generator that, through a series of 25
macros, manipulates raw data pasted into a specific worksheet. These macros
exist in 5 different Modules.

I have protected the Project so that no one can edit the macros, but the
macros still appear in the Macro Window and a user could still 'Run' any
macro if he chose to (which, potentially, could screw up the report since the
macros need to be run in a specific order).

Other than moving all the macros into ONE Module and making them 'Private
Subs' so that they do not appear in the Macro Window, is there any other way
to prevent a user from running a macro that appears in the Macro Window?

Thanks ...

Bill