Set length of selected range.