Description: If a Conditional Format uses a formula which references columns via Named Ranges, and the Named Ranges are not sheet-specific, then: If a Save, Exit, and restart is done, the Conditional Formats are corrupted by changing all the column references from non-sheet-specific to referencing a *different* sheet (I suspect it is the last sheet). However, just doing Save and Reload does _not_ cause the problem. Steps to Reproduce: 0. Download attached "t.ods" and "tickers.csv" into /tmp t.ods must be writable. tickers.csv MUST be at the path /tmp/tickers.csv Set Macro Security to "Medium" (Tools->Options->Security->Macro Security). 1. /path/to/soffice t.ods ; Enable macros when prompted 2. Click the yellow "Reload csv" button (sheet looks correct); 3. File->Save 4. File->Exit 5. /path/to/soffice t.ods (sheet looks wrong) Actual Results: After Step #2 (clicking "Reload csv"), File->Format->Conditional->Manage shows correct formulas which reference named columns like "Shading". However after Save/Exit/Newstart/Load, the Conditional Format formulas have been changed to specify another sheet, e.g. "TSLA.Shading". Since the sheet references is not the same sheet, the results are "interesting". Expected Results: . Reproducible: Always User Profile Reset: No Additional Info: (The "Reload csv" button runs a macro which reads /tmp/tickers.csv into the SVXY sheet and copies the formats (but not data) from the _PROTO sheet, including Conditional Formats.)
Created attachment 166022 [details] t.ods (see Steps to Reproduce)
Created attachment 166023 [details] Data file which must be in /tmp/tickers.csv (see Steps to Reproduce)
Clicking in the yellow button prompts the following message: No .csv files in /home/jima/jts/. Please attach the correct file pointing to /tmp
Created attachment 166321 [details] t.ods (corrected) (see Steps to Reproduce)
@Xisco - My apologies! I updated the attachment (t.ods)
[Automated Action] NeedInfo-To-Unconfirmed
When I run the macro, in 7.3 I get: BASIC runtime error. Argument is not optional. for the line: if IsMissing(dirlist_arg) OR IsEmpty(dirlist_arg) or dirlist_arg = "" then In 7.2 I get: Inadmissible value or data type. Data type mismatch. for the line: dim BidVal as double : BidVal = CDbl(bid) Can you fix this/these and check with 7.3? I guess Linux-rpm_deb-x86_64@tb87-TDF-dbg would be easiest to test from https://dev-builds.libreoffice.org/daily/master/current.html
> BASIC runtime error. Argument is not optional. Hi Buovjaga, Yes, that is a code bug but happens only if it can not find file tickers.csv in /tmp (actually it searches for *.csv). Please download tickers.csv from this bug and place it in /tmp and try again. I re-confirmed the bug on 7.4 alpha, downloaded from https://dev-builds.libreoffice.org/daily/master/Linux-rpm_deb-x86_64@tb87-TDF/2021-11-28_06.35.40/LibreOfficeDev_7.4.0.0.alpha0_Linux_x86-64_deb.tar.gz P.S. I'll upload a revised test spreadsheet which prints a proper diagnostic if the .csv file can not be found.
Created attachment 176574 [details] t.ods (corrected & fixed to diagnose missing .csv)(see Steps to Reproduce)
I did have it in /tmp. Tried again with your new file with 7.4 and now I run into (In reply to Buovjaga from comment #7) > Inadmissible value or data type. > Data type mismatch. > > for the line: > dim BidVal as double : BidVal = CDbl(bid)
A new major release of LibreOffice is available since this bug was reported. Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Dear Jim Avera, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping
Dear Jim Avera, Please read this message in its entirety before proceeding. Your bug report is being closed as INSUFFICIENTDATA due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided): a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present b) Provide easy to reproduce steps – the simpler the better c) Provide any test case(s) which will help us confirm the problem d) Provide screenshots of the problem if you think it might help e) Read all comments and provide any requested information Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. Please do not: a) respond via email b) update the version field in the bug or any of the other details on the top section of our bug tracker Warm Regards, QA Team MassPing-NeedInfo-FollowUp
Created attachment 183930 [details] Updated test file t.ods (fixes comment #10)(See Steps to Reproduce & Comment after #14)
With latest master the corrupted Conditional Formats no longer occur, but a crash occurs every time when starting LO the second time in the test sequence, i.e. after running the macros and doing a save and exit. Since this looks like a different bug, I'm going to close this as WORKSFORME and open a new bug for that crash. -Jim Version: 7.5.0.0.alpha1+ (X86_64) / LibreOffice Community Build ID: 98d8adc5b377039d5dee0d5046ece721010a960c CPU threads: 12; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded