Description: When exporting range of cells from sheet to .csv file, the whole sheet is exported instead of the range. When exporting range of cells from sheet to .pdf file, the range of cells is exported correctly. Steps to Reproduce: 1. Open file store_cell_range_to_csv.ods 2. Run macro storeCellRangeToCSV() 3. Open file exported.csv and see the contents. The whole sheet is exported instead of range. Actual Results: The whole sheet is exported instead of range of cells. Expected Results: Only range of cells should be exported. Reproducible: Always User Profile Reset: Yes Additional Info: When exporting range of cells from sheet to .pdf file, the range of cells is exported correctly.
Created attachment 190198 [details] ods file with 2 macros for exporting data from Sheet1 to .csv and .pdf
Sorry, but it is how it works, for CSV the whole sheet it's exported. There is an extension, which I have not tested. https://extensions.libreoffice.org/en/extensions/show/creating-a-csv-file-from-the-scope-of-data