Execute button with macro not working

So i have a macro that can works if i click a button.
first i need to input my macro to execute action to that button so it can work in my document, but if i close my document, button macro that i save the execute button is gone so i have to re-input that macro again for execute.

so can i have permanent my input macro in button so i dont need to re input my macro to a button ?

sorry for my bad english…

How are you doing it? How are you assigning the macro to the button?

In toogle design mode, right click on button, control properties, on events tab there is execute action then i choose my macro.
but when re-open document they need to re input like that again

I cannot reproduce the error on my computer. Please provide the information displayed in the Help → About LibreOffice.

Version: 25.8.1.1 (X86_64) / LibreOffice Community
Build ID: 580(Build:1)
CPU threads: 16; OS: Linux 6.16; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
25.8.1-2
Calc: threaded

Version: 7.6.0.3 (X86_64) / LibreOffice Community
Build ID: 69edd8b8ebc41d00b4de3915dc82f8f0fc3b6265
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-US
Calc: threaded