Write Python macros in LibreOffice Calc.
- 2020-09-25
- Raspbierry Pi 4 Model B Rev 1.2
- Raspbian buster 10.0 2019-09-26 setup
- bash 5.0.3(1)-release
- LibreOffice 6.1.5.2
$ uname -a
Linux raspberrypi 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l GNU/Linux
sudo apt -y install libreoffice libreoffice-l10n-ja libreoffice-help-ja
git clone https://github.com/ytyaru/Shell.LibreOffice.Calc.Macro.Python.20200925123834
cd Shell.LibreOffice.Calc.Macro.Python.20200925123834/src
./run.sh
- Start LibreOffice Calc
- Click Menu →
Tools
→Macros
→Manage Macros
→Python
- Open
My Macro
→hello_uno
→hello
from the tree - Click the
Run
button
999
is entered inA1
ofSheet1
If the macro cannot be executed, set the security to "medium".
- Start LibreOffice calc
- Click Menu →
Tools
→Options
- Click
LibreOffice
→Security
from the tree on the left side of the dialog - Click the
Macro Security
button on the right side of the dialog - Click the radio button
medium
in thesecurity level
tab` - Click the
OK
button
ytyaru
This software is CC0 licensed.