[Dropped] Get code binding with button

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Locked
luofeiyu
Posts: 55
Joined: Thu Sep 14, 2017 2:11 am

[Dropped] Get code binding with button

Post by luofeiyu »

Please download the SetCellStyle.ods file,how can get the code binding with push button?
Attachments
SetCellStyle.ods
(10.27 KiB) Downloaded 28 times
Last edited by MrProgrammer on Tue Sep 23, 2025 4:52 pm, edited 1 time in total.
Reason: Dropped: No reply from luofeiyu
LibreOffice 24.8 on Debian 12
JeJe
Volunteer
Posts: 3109
Joined: Wed Mar 09, 2016 2:40 pm

Re: How can get the code binding with button?

Post by JeJe »

Have you turned off form controls design mode?
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
User avatar
Zizi64
Volunteer
Posts: 11495
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: How can get the code binding with button?

Post by Zizi64 »

Here is (you can make visible the Form Controls toolbar at View - Toolbars) :
binding.jpg
binding.jpg (51.93 KiB) Viewed 2557 times
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Bidouille
Volunteer
Posts: 660
Joined: Mon Nov 19, 2007 10:58 am
Location: France

Re: How can get the code binding with button?

Post by Bidouille »

No need macro to set a cell style, use the stylist box.
Locked