https://bugs.documentfoundation.org/show_bug.cgi?id=149560

            Bug ID: 149560
           Summary: Excel Visual Basic compatibility issue in LibreOffice
                    Calc: Round trip produces a corrupt xls file
           Product: LibreOffice
           Version: 7.3.4.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: ovari...@zoho.com

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

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to