https://bugs.documentfoundation.org/show_bug.cgi?id=117511
Bug ID: 117511
Summary: Setting the cell formula from a macro results Err:508
cell value
Product: LibreOffice
Version: 5.4.1.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Calc
Assignee: [email protected]
Reporter: [email protected]
Created attachment 141985
--> https://bugs.documentfoundation.org/attachment.cgi?id=141985&action=edit
Test spreadsheet with a macro
Steps to reproduce:
1. Create a macro that sets the cell formula which in return contains quotes:
ThisComponent.Sheets.getByIndex(0).getCellByPosition(0, 0).Formula =
"=TEXT(A2,""##"")"
2. Run this macro
Expected:
Cell A1 contains formula '=TEXT(A2,"##")' and displays value of cell A2 ("12").
Actual:
The error Err:508 is displayed signalling that either braces or quotes are not
balanced.
Note:
If after running a macro one edits the cell A1 and makes insignificant edit
(e.g. adds a space), the whole formula starts to work correctly.
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs