Hi. I can read data from these cells, but utterly stumped how to write new data into them. Please see following snippet:
Sub Test
REM	Get this document ("Pay sheet") 
	Dim	Paysheet
	Paysheet = ThisComponent
REM	Get "Time Sheet" sheet and various ranges
	Dim	Timesheet
	Timesheet = Paysheet.sheets.getByName("Time Sheet")
	Dim	CarerTimes as Object
	CarerTimes = Timesheet.getCellRangeByName("CarerTimes")
	Dim	CarerName
	Dim	CarerStatus
	Dim	CarerNrmlHrs
REM	Loop counter
	Dim	nTimes
	nTimes = CarerTimes.RangeAddress.EndRow - CarerTimes.RangeAddress.StartRow
	
	Dim j
	For j = 0 to nTimes
			
REM	Can read these array values, but utterly stumped how to put new data into them
			CarerName = CarerTimes.DataArray(j)(0)
			CarerStatus = CarerTimes.DataArray(j)(2)
			CarerNrmlHrs = CarerTimes.DataArray(j)(4)
			
			MsgBox	CarerName+"  "+CarerStatus+ "  "+CarerNrmlHrs
	Next j
	
End Sub
[erAck: edited to codify using ``` see This is the guide - How to use the Ask site? - #6 by erAck ]
 
      
    