Hello,
I would like to filling the combobox with the elements in range “E7:E48”,
but I don’t understand the problem…
oSheet = ThisComponent.getSheets().getbyname("Prova")
oMyCombo = oSheet.DrawPage.Forms.getByName("Formulario").getByName("Id_model")
oMyCombo.removeAllItems()
odata = ThisComponent.getSheets().getbyname("Database").getCellRangeByName("E7:E48").DataArray
oRow = odata(0)
For i = LBound(oRow) to UBound(oRow)
oMyCombo.insertItemText (i, oRow(i))
Next i
Can you help me?
Thank you
Libreoffice 6
SO Win10