ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   protect public sub (https://www.excelbanter.com/excel-discussion-misc-queries/184866-protect-public-sub.html)

johnny

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.

Jim Thomlinson

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.


johnny

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


All times are GMT +1. The time now is 06:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com