Page 1 of 1

[Solved] Hide macro code

Posted: Mon Jul 21, 2008 11:17 pm
by grnhorn
In VBA it is possible to prevent a user from viewing the code with a password, is this possible in OO?

thanks...

Re: Hide macro code

Posted: Tue Jul 22, 2008 9:37 pm
by squenson
You first have to create a new library, as you cannot password protect the default library called Standard. CLick on Tools > Macro > Organize Macros > Open Office.org macro. Then click the button "Organizer", then select the tab "Libraries", choose your document in the combo box. Finally (not quite!), click on the New button, type a library name and OK. You can now click on the button password to protect your library.

Re: Hide macro code

Posted: Wed Jul 23, 2008 11:53 am
by grnhorn
Thanks squenson, it worked as advertised.

Re: [Solved] Hide macro code

Posted: Mon May 11, 2009 5:23 pm
by Maraujo
Hi All,

I protected my library (where all the macros are) with a password but i (or any user) can still see/access all the code just by clicking "tools->macros->organizer macros->OO Basic->(Select Macro)->Edit"
There are no dialogs asking for the password or anything to prevent macro edition

The user should not be able to see the macro code.

Am i missing something??

Cheers,
Mark

Re: [Solved] Hide macro code

Posted: Mon May 11, 2009 9:34 pm
by squenson
Have you exactly followed the steps of my first anwser?
Have you saved and closed your document, then re-opened it?