Patent ID: 8782511

Claim:
A spreadsheet control program stored on a non-transitory computer readable medium for controlling a spreadsheet in a computer including a touch screen, the program causing the computer to execute: a line detecting step of detecting a line drawn on a predetermined window of the touch screen; a ruled line recognizing step of recognizing the line detected at the line detecting step as a ruled line which is parallel with a transverse or vertical ruled line corresponding to a row or column of the spreadsheet to be displayed on the window; a cell setting step of setting, to a single cell in the spreadsheet, a region in which a square formed by intersection points of the ruled lines recognized at the ruled line recognizing step is displayed when the square is formed; and an input value accepting step of accepting data specifying the region set to the cell at the cell setting step as a value input to the cell over the spreadsheet when the data are input; wherein when a height or width of a square formed newly is different from that of an corresponding to the square formed newly is set to be the same as that of the predetermined range, on the other hand, when a height or width of the square formed newly is different from that of the adjacent cell which is previously set within the predetermined range, a height or width of the cell corresponding to the square formed newly is set to be the same as that of the adjacent cell which is previously set at the cell setting step.