In a previous version of LibreOffice I had created a macro that I called upon with a keyboard shortcut. It worked like this:
I would highlight text in libreoffice writer and hit the assigned key (F4) and the selected text would be marked as norwegian language.
This was very usefull because I get a lot of small texts in other languages that I translate to norwegian.
Then I changed OS to Manjaro KDE and upgraded LO to 6.3.6.2 and happily re-created the macro from scratch. The macro worked that first time. Now, whenever I call upon the macro in a new document I get:
A Scripting Framework error occurred while running the Basic script vnd.sun.star.script:Standard.Module1.norsk?language=Basic&location=application.
Message: The following Basic script could not be found:
library: ‘Standard’
module: ‘Module1’
method: ‘norsk’
location: ‘application’
And if I open the macro (as if I wanted to edit it, not that I would know how to do that) I get another error saying:
BASIC syntax error.
Sub procedure or function procedure set_nor already defined.
I am a pretty basic user of LibreOffice so I have no idea what this means, and I was hoping somebody would be able to lend me a hand.
Thank you!
Thank you Lupp for your comments!
- Yes, Tools->language for selection, is the best option because the document may contain texts in other languages too.
- Not sure if I understand what you mean, but I want the language set to Norwegian so that I can use spellcheck and make sure I don’t leave any typo in the text.
- I went Tools-> Organize macros → LibreOffice Basic Macros and there I looked up my macro under My Macros > Standard > Module1. Then I selected it and hit Edit.
But… It seems I found the solution. I created the macro again and this time when trying to assign it to a keyboard shortcut I got an error saying I needed to install JRE. I did that and it seems to work now. I have tried opening several different documents and so far it looks good.