Prevent sheet from stepping outside its valid cell range.