Quantcast
Channel: Apache OpenOffice Community Forum
Viewing all articles
Browse latest Browse all 1281

External Programs • Re: [Python] [Unohelper] Understanding the behaviour of setFormulaArray

$
0
0
Here is a rough version of working code.

Code:

sheet = ThisComponent.Sheets.getByName("Sheet1")cell_rv1 = sheet.getCellByPosition(0,1)var = cell_rv1.getFormulaArray()(0)target_1_range = sheet.getCellRangeByName("A3:A10")target_1_array = target_1_range.getFormulaArray()for i = 0 to UBOUND(target_1_array())    target_1_array(i) = varnext itarget_1_range.setFormulaArray(target_1_array())

Statistics: Posted by FJCC — Fri Dec 13, 2024 3:45 pm



Viewing all articles
Browse latest Browse all 1281

Trending Articles