Sets the contents of the cell in the upper-left corner of the range to the specified string.
Range.setCellContentsFromString(contents)
setCellContentsFromString works as if the user selected a cell and entered a string in the edit line.
It overwrites any value already in the cell.
See also
setCellContentsFromNumber method
getCellContents method
getCellValueAsNumber method
getCellValueAsString method