Description: Using LibreOffice Calc, a round trip from .xls to .ods to .xls doesn't work for a Excel spreadsheet with a simple button which runs a subroutine that shows a message box. Steps to Reproduce: An Excel button2macro.xls spreadsheet file with a button that runs macro MsgBox "Hello World!" With LibreOffice Calc, save the button2macro.xls file as button2macro.ods. Clicking the "Button 1" shows the "Hello World!" dialog box. Close LibreOffice. With LibreOffice Calc, save the button2macro.ods file as button2macroback.xls. Open the button2macroback.xls with Microsoft Excel 2010 and a dialog shows with a message: ``` Office has detected a problem with this file. To help protect your computer this file cannot be opened. ``` LibreOffice Calc 7.3.4.2 opens the button2macroback.xls file and it works most of the time; however, there was a time when the file opened and the button was clicked and it didn't work with the message: ``` A Scripting Framework error occurred while running the UNKNOWN script UNKNOWN. Message: Incorrecct format for Script URI: /run/build/libreoffice/scripting/source/provider/MasterScriptProvider.css:238 ``` Perhaps the MasterScriptProvider.css:238 can help with finding a solution so a round trip of a VBA file is achievable. Actual Results: Open the button2macroback.xls with Microsoft Excel 2010 and a dialog shows with a message: ``` Office has detected a problem with this file. To help protect your computer this file cannot be opened. ``` Expected Results: The button2macroback.xls spreadsheet file should be able to be opened with Microsoft Excel 2010. Reproducible: Always User Profile Reset: No Additional Info: The Excel button2macro.xls spreadsheet file will be attached as later as unsure how to attach it now. Will help with bug 149325. Thank you
Created attachment 180746 [details] button2macro.xls
Created attachment 180747 [details] button2macro.ods
Created attachment 180748 [details] button2macroback.xls
I confirm with office.com Arch Linux 64-bit, X11 Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 4c06cfcd13195e9e996bc09dbee2dcac1c5e8ed2 CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Built on 20 January 2023 (In reply to Óvári from comment #0) > ``` > A Scripting Framework error occurred while running the UNKNOWN script > UNKNOWN. > > Message: Incorrecct format for Script URI: > /run/build/libreoffice/scripting/source/provider/MasterScriptProvider.css:238 > ``` The code block is: // need to get the language from the string Reference< uri::XUriReferenceFactory > xFac ( uri::UriReferenceFactory::create( m_xContext ) ); Reference< uri::XUriReference > uriRef = xFac->parse( scriptURI ); Reference < uri::XVndSunStarScriptUrl > sfUri( uriRef, UNO_QUERY ); if ( !uriRef.is() || !sfUri.is() ) { throw provider::ScriptFrameworkErrorException( "Incorrect format for Script URI: " + scriptURI, Reference< XInterface >(), scriptURI, "", provider::ScriptFrameworkErrorType::UNKNOWN ); }
Dear Óvári, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
(In reply to QA Administrators from comment #5) Unable to test.
(In reply to Óvári from comment #6) > (In reply to QA Administrators from comment #5) > > Unable to test. Wontfix would be the wrong status in any case, but others are able to test, so closing is simply the wrong thing to do. Still repro with office.com Arch Linux 64-bit Version: 24.8.4.2 (X86_64) / LibreOffice Community Build ID: 480(Build:2) CPU threads: 8; OS: Linux 6.12; UI render: default; VCL: kf6 (cairo+wayland) Locale: fi-FI (fi_FI.UTF-8); UI: en-US 24.8.4-1 Calc: threaded