Executing a macro when a event occurs.

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
recarnevale
Posts: 3
Joined: Tue Apr 29, 2008 3:03 pm

Executing a macro when a event occurs.

Post by recarnevale »

Hi, I need to activate, or execute, a macro written in Basic that changes something in a spreadsheet when a particular event occurs. For example, this macro should change the background color of a cell when the value of this one chage. How can I captire this event in Basic???
User avatar
Villeroy
Volunteer
Posts: 31345
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Executing a macro when a event occurs.

Post by Villeroy »

Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
recarnevale
Posts: 3
Joined: Tue Apr 29, 2008 3:03 pm

Re: Executing a macro when a event occurs.

Post by recarnevale »

No mine is a generic consideration, my script has to intercept an event such as chaging value and make something. In another forum someone told about listeners. I'm a java programmer, i know listeners but in Basic I've no idea.
User avatar
Villeroy
Volunteer
Posts: 31345
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Executing a macro when a event occurs.

Post by Villeroy »

You can control OOo with Java as well (even better).
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply