Setting a range of cells from an array of formulas prefixes them with ’ making them text.
How can the ’ text prefixing be prevented?
Don’t want to do them one at a time with .setFormula()
Dim arrChgPctChg(1 to Rows_Count - 1, 1 to 2)
For row_index = 2 To Rows_Count
arrChgPctChg(row_index - 1, 1) = "=$G" & row_index & "-$G" & row_index + 1
arrChgPctChg(row_index - 1, 2) = "=$H" & row_index & "/$G" & row_index + 1
Next
.getCellRangeByName("H2:I" & UBound(arrChgPctChg())+1).setDataArray(arrChgPctChg())
LibreOffice 7.5.1.2