Apache OpenOffice (AOO) Bugzilla – Issue 82575
Macros saved in XLS format are not retained, when deleted are retained
Last modified: 2013-08-07 15:12:27 UTC
Create a new document in Calc. Create a macro (Tools -> Macros -> Organize Macros -> OpenOffice.Org Basic...) Select the document (Untitled1, say), open the tree, select Standard, click New. The name of the new module matters not, just click OK. OpenOffice.org Basic opens. Just close it. Save the file as "Test.xls" using the XLS type. Close the document and re-open it. Look into the OpenOffice.org Basic Macros dialog, the macro was not saved. Repeat the same steps but chose the "ODS" format. The macro will be retained. The reverse is true also. An XLS document with a macro inside, deleting the module containing the macro, or the macro itself, in the "OpenOffice.org Basic Macros", and saving as XLS does not delete module or macro. Works fine in ODS.
Hi, this is not a bug. OOo macros can't be run on Excel and vice versa. So saving Macro code to XLS from OOo is not possible. On the other hand imported Excel Macro code can't be removed to avoid problems. You're only able to Edit these macros but you can't erase them completely. This is on purpose. Frank
closed invalid
Thanks for your response. I think I understand what you mean, up until the next to last sentence. You are saying "macros from one platform cannot run in the other", thus, macros from Excel can be edited, but not deleted. I can't see the rationale behind this. If the macro cannot be run, then why bother leaving the possibility of editing it? If the macro can be edited, then why prevent it from being deleted? At the very least when editing or trying to delete an Excel macro, there should be a message saying "Deletion of the Excel macro cannot be performed". The current behaviour shown suggests it was deleted, but it comes back when the file is re-open. At the very least the interface is misleading...
re-opened as development want's to evaluate the macro saving thing
Hi Daniel, as you mentioned, it may be a defect that the macro reappears in Excel so the Excel filter ignores the deletion of the macros on export. IMHO this is correct behaviour as the macros should be erased fom a document using the application which implemented them. Frank
Just to confirm that behaviour is identical in OOo version 3.0.1