11

I have the LibreOffice 4.0.2.2 that comes with Ubuntu 13.04. The Tools-Macros-Organize macros menu only shows the LibreOffice Basic item. I assumed I would find also Python and other languages. This post and many other posts talk about it, but I can't find it.

Was my assumption wrong? Do I need to install something?

2 Answers 2

14

I was experiencing the same problem and have solved it by installing libreoffice-script-provider-python:

sudo apt-get install libreoffice-script-provider-python

Hope it helps.

Update: in order to get your scripts listed in the macro dialog, you should put them in a folder called: ~/.config/libreoffice/4/user/Scripts/python, as pointed out by @Mark in the comments.

3
  • 2
    Thanks, it worked. Now I have the Python item, but I can only run existing Python macros. I can't create new ones or edit the existing ones. Do I still miss something? Or that's the way it works? How do I create a new one?
    – stenci
    Aug 2, 2013 at 4:19
  • Yes am stuck in the same place... Aug 3, 2013 at 22:44
  • 1
    As fair as I know, there's no Python editing capability builtin with LibreOffice. You can edit your macros in an external editor and then save them to the appropriate path. Aug 5, 2013 at 11:30
0

Make a subdirectory python (all lowercase) inside your home directory ~/.config/libreoffice/4/user/Scripts and put your scripts there.

1
  • 2
    this does not work on Ubuntu 14.04 with LibreOffice -- scripts should instead be put in ~/.config/libreoffice/4/user/Scripts/python -- see stackoverflow.com/a/22074770/420385
    – Mark
    Feb 18, 2015 at 18:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .