Macros/Python Guide/My first macro

Return to Index

My first Python Macro
All Python examples are stored as PC-based personal macros, as opposed to product Python scripts or document-based scripts. Any example in this guide assumes that you save in this place.

IMPORTANT Python's syntax is very strict, be sure copy and paste correctly.

Use your favorite text editor, or better an IDE to edit your code.

For Writer

 * Open Writer, go to in section Library select mymacros (or your name file), in section Macro Name, select macro my_first_macro_writer and click in command button Run



For Calc

 * Open calc, go to in section Library select mymacros (or your name file), in section Macro Name, select macro my_first_macro_calc and click in command button Run



Return to Index