And sorry for my bad english
[Solved] How to split cells by API
[Solved] How to split cells by API
Sup, I need some help. I use oo api to automatical export data to excel (from 1c, but you dont know what is it, and its cool to you). But i have some problem - i cannot split/merge cells range. I can take the cells range, changes its colors and values what i need, formats etc, but cannot split it from one. Please, can you give some example for dummies
. Much thank you.
And sorry for my bad english
And sorry for my bad english
Last edited by Hagar Delest on Fri Dec 12, 2014 11:44 pm, edited 1 time in total.
Reason: tagged [Solved].
Reason: tagged [Solved].
LibreOffice 4.2 with WinXP sp2
Re: How to split cells by api
Are you looking to split a cell (i.e, unmerge it) back to its components, or to break data in a cell up into separate components. If this latter, what are the criteria for breaking up the data?
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
Re: How to split cells by api
I need to merge cells, i dont care about data in it write now. I need to merge some cells to one, then give it a value.
LibreOffice 4.2 with WinXP sp2
Re: How to split cells by api
Code: Select all
oSheets = ThisComponent.getSheets()
oSheet = oSheets.getByName("Sheet1")
oCellRange = oSheet.getCellRangeByName("A1:A3")
oCellRange.merge(True)OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Re: How to split cells by api
Thank you! It worksFJCC wrote:I haven't had time to explore what the boolean argument does in the merge() function.Code: Select all
oSheets = ThisComponent.getSheets() oSheet = oSheets.getByName("Sheet1") oCellRange = oSheet.getCellRangeByName("A1:A3") oCellRange.merge(True)
LibreOffice 4.2 with WinXP sp2
Re: How to split cells by api
.merge(False) splits merged cells.FJCC wrote:I haven't had time to explore what the boolean argument does in the merge() function.
.merge(True) merges cells, but only if none of the cells in the range are merged. If A1:A2 is merged, then you select A1:B2 and try to merge it, there will be no effect. The macro has to select A1:A2, unmerge them, then select A1:B2 and merge it. Kind of annoying.
OpenOffice 4.1.1 on Windows 10, HSQLDB 1.8 split database
Re: How to split cells by api
Thanks!
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.