Ask Your Question

Can only Edit Basic Macros [closed]

asked 2015-07-15 13:25:14 +0200

peterwt gravatar image

updated 2015-07-15 14:22:09 +0200

karolus gravatar image

Using the Organise Macros all options to Edit etc. a Basic Macro are available. With BeanShell, JavaScript, and Python the only option is to Run as all the other options are greyed out. How can you create a new Python Macro in Organise Macros?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-08-22 23:53:17.710280

1 Answer

Sort by » oldest newest most voted

answered 2015-07-15 14:04:50 +0200

karolus gravatar image

updated 2015-07-15 14:18:30 +0200

How can you create a new Python Macro in Organise Macros

With any Texteditor|Programming-IDE which works for you.
store your Scripts into path:

helper for organizing|embedding python

Probably this Discussion is also helpfull

edit flag offensive delete link more


Thanks' @karolus. I guess the edit is only for LO Basic. How then to attach Python Macro to an event as all options are greyed out?

peterwt gravatar imagepeterwt ( 2015-07-20 12:25:16 +0200 )edit

If there is something valid Pythoncode in folder ../Scripts/python/...
you can attach this for Example via →Tools→Customize→Events→....

Any Python-function which should attached to some Event needs a signature like:

def some_pretty_function( some_event ):

because without Argument in Signature it will throw an Error-exception.

karolus gravatar imagekarolus ( 2015-07-20 12:55:40 +0200 )edit

Thanks I can see it now,

peterwt gravatar imagepeterwt ( 2015-07-22 23:44:58 +0200 )edit

Question Tools

1 follower


Asked: 2015-07-15 13:25:14 +0200

Seen: 176 times

Last updated: Jul 15 '15