[Solved] Lost macro Writer

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
j wrigh
Posts: 5
Joined: Wed Mar 03, 2021 1:13 pm

[Solved] Lost macro Writer

Post by j wrigh »

For years I have used a template with associated OOBasic Macro to create a skeleton document. Last used a few weeks ago. Macro located in "Libraryservice" library.
Now the template runs but does not find the macro.

Recently created several other macros for another project.("Library1") "Libraryservice" was there then.

Now, all my macros have disappeared, possibly after installing 4.1.11
A check of folder ......\OpenOffice\4\user\basic shows libraries "Standard" and my own ("Libraryservice";"Library1" etc) as expected.
These folders have the right filenames in them.
But only "Standard" appears in Tools/macros/Organise macros /OpenOffice Basic/organiser

How can I get the macros back?

I note that the OO version is automatically described as 4.1.9 on Windows 7 Wrong. It is 4.1.11 (from Help/About OO)
Last edited by j wrigh on Tue Jan 04, 2022 12:52 pm, edited 1 time in total.
OpenOffice 4.1.11 on Windows 7
User avatar
Zizi64
Volunteer
Posts: 11358
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Lost macro Writer

Post by Zizi64 »

I note that the OO version is automatically described as 4.1.9 on Windows 7 Wrong. It is 4.1.11 (from Help/About OO)
_____________________________________
OpenOffice 4.1.9 on Windows 7
You can update yout signature in your User profile in this forum.
User Control Panel - Profile (TAB) - Edit signature (Sub-TAB)
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.
j wrigh
Posts: 5
Joined: Wed Mar 03, 2021 1:13 pm

Re: Lost macro Writer

Post by j wrigh »

Many thanks Zizi64
OpenOffice 4.1.11 on Windows 7
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Lost macro Writer

Post by Villeroy »

Restore folder %APPDATA%\OpenOffice\4\user\basic from backups. No backup because Windows users don't do any backups?
Go to that folder and edit script.xlc which manages the libraries.
Within the library subfolders script.xlb manages the modules.
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
j wrigh
Posts: 5
Joined: Wed Mar 03, 2021 1:13 pm

Re: Lost macro Writer

Post by j wrigh »

Many thanks.
Windows no backups? OH YES WE DO!
Blessings
OpenOffice 4.1.11 on Windows 7
Post Reply