#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default protect public sub

Hi,
Please any suggestions.

In a workbook, I created many public subs, I protected it from
viewing.
But when I open another workbook at the same time, I still can go the
Macro menu, and see all these functions, and can run them through the
pop up macro window.

How do I hide all these public procedures from running and viewing ?
I need to them in the public module, so other sheets can use them.

Thanks for your advice.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default protect public sub

At the top of the module add the following line of code...

Option Private Module
--
HTH...

Jim Thomlinson


"johnny" wrote:

Hi,
Please any suggestions.

In a workbook, I created many public subs, I protected it from
viewing.
But when I open another workbook at the same time, I still can go the
Macro menu, and see all these functions, and can run them through the
pop up macro window.

How do I hide all these public procedures from running and viewing ?
I need to them in the public module, so other sheets can use them.

Thanks for your advice.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default protect public sub

On Apr 23, 1:53 pm, Jim Thomlinson <James_Thomlin...@owfg-Re-Move-
This-.com wrote:
At the top of the module add the following line of code...

Option Private Module
--
HTH...

Jim Thomlinson

"johnny" wrote:
Hi,
Please any suggestions.


In a workbook, I created many public subs, I protected it from
viewing.
But when I open another workbook at the same time, I still can go the
Macro menu, and see all these functions, and can run them through the
pop up macro window.


How do I hide all these public procedures from running and viewing ?
I need to them in the public module, so other sheets can use them.


Thanks for your advice.


Thanks a lot
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
public variables johnny Excel Discussion (Misc queries) 7 February 27th 08 03:44 PM
Public Password Excel 2003 - SPB Excel Discussion (Misc queries) 2 May 23rd 07 11:08 PM
Public variable Jack New Users to Excel 4 March 18th 06 09:35 PM
Public Curiosity BillCPA Excel Discussion (Misc queries) 1 December 5th 05 10:33 PM
Public Function Monty Excel Discussion (Misc queries) 9 December 24th 04 06:35 PM


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