Hide code in macro add in

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
Kprogrammer
Posts: 52
Joined: Wed Aug 22, 2018 5:47 pm

Hide code in macro add in

Post by Kprogrammer »

while sending file containing macro , it has all macro codes in it.

so can i create add in for this so that code will be hidden but it will execute?

Thanks in advance.
Open office 3.1 on Windows 7
User avatar
Zizi64
Volunteer
Posts: 11361
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: macro add in

Post by Zizi64 »

viewtopic.php?f=20&t=8043

You can not protect the predefined Standard library by password, but you can protect all of other (user defined) ones.
But only the Standard library will be loaded into the memory when you open a document. You must load-in all of other Libraries by your macro code.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: macro add in

Post by Villeroy »

Zizi64 wrote:But only the Standard library will be loaded into the memory when you open a document. You must load-in all of other Libraries by your macro code.
No. Any library that is called by some script-URL (button, shortcut, menu, event) will be loaded automatically. If you need to call routines from a second library, then you need to load this library programmatically.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
Zizi64
Volunteer
Posts: 11361
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: macro add in

Post by Zizi64 »

No. Any library that is called by some script-URL (button, shortcut, menu, event) will be loaded automatically. If you need to call routines from a second library, then you need to load this library programmatically.
Thanks, it is a useful (and new) information for me.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Post Reply