https://bugs.freedesktop.org/show_bug.cgi?id=74536
--- Comment #5 from [email protected] --- (In reply to comment #4) > I must be missing something. Can you literally give me a step-by-step of > what you are doing? Sure: Open new spreadsheet or writer doc Create new macro: Tools>Macros>Organise Macros>LibreOffice Basic... In the 'Macro from' window select 'Untitled 1' and press 'New' then 'OK' In the Basic IDE, enter: Sub printHW print "Hello World" End Sub Switch back to the spreadsheet or writer doc & save it Draw a Push Button:View>Toolbars>Form Controls (if not already visible) & select the Push Button & draw one on the spreadsheet or writer doc. Right mouse click on the Push Button and choose 'Control...' On the 'Events' tab assign printHW to 'Execute action' & close the 'Properties:Push Button' window Save the spreadsheet or writer doc & close LibreOffice entirely Open the od(s|t) (note it's editable) and press the button and the text box is displayed as expected. Now disable editing, press the Push button, and the error message is displayed. Close that. Enable editing and Form Controls toolbar will appear. Press the 'Design Mode On/Off' button to off and press the Push button and the error message appears. Now if you close the od(s|t) but *not* LO, then re-open it from the start centre, disable editing and then press the button you get the error message immediately rather than having it work first time. -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
