Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what language do I need to write macros in LIbre Office Calc? [closed]

I've written a bunch of VBA code for various things in Excel. I'm looking at migrating to libreOffice. Under Tool->Macros->Organize Macros: the two choices are LibreOffice Basic and Python.

Should I learn one of those, both, or something else. Am I wasting my time altogether? Any suggestions appreciated.

like image 306
DBWeinstein Avatar asked Jul 24 '12 19:07

DBWeinstein


People also ask

What language are LibreOffice macros written in?

LibreOffice macros are usually written in a language called LibreOffice Basic, sometimes abbreviated to Basic. Although you can learn Basic and write macros, there is a steep learning curve to writing macros from scratch.

What language does LibreOffice Calc use?

The primary macro scripting language for Calc is LibreOffice Basic and the standard LibreOffice installation provides a powerful integrated development environment (IDE) together with more options for this language.

Does LibreOffice run VBA?

After loading the VBA code, LibreOffice inserts the statement Option VBASupport 1 in every Basic module to enable a limited support for VBA statements, functions and objects.

Does LibreOffice have a scripting language?

The Scripting Framework is a new feature in LibreOffice. It allows users to write and run macros for LibreOffice in a number of programming and scripting languages including: BeanShell (https://www.beanshell.org/)


1 Answers

Python is the way to go.

Start here: http://wiki.python.org/moin/BeginnersGuide

And no, you're not wasting time. You'll look back and say, why didn't I do it sooner.

like image 141
pat34515 Avatar answered Oct 01 '22 03:10

pat34515