diff --git a/R/class-workbook.R b/R/class-workbook.R index 5f4edd688..9edbc1b95 100644 --- a/R/class-workbook.R +++ b/R/class-workbook.R @@ -3914,7 +3914,7 @@ wbWorkbook <- R6::R6Class( type <- match.arg(type) - if (length(cols) > 2) + if (length(cols) > 2 && any(diff(cols) != 1)) warning("cols > 2, will create range from min to max.") ## rows and cols