excel: group on multipleranges lazarus / 21-General ---------------------------------------------------------------------- epergola · 2021-02-19 21:49 HI Is it possible to programatically group of different row ranges in excel? I have this in my code Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i      R:=wb.WorkSheets[1].Range['A3','A8'];     R.rows.Group( EmptyParam, EmptyParam,EmptyParam, EmptyParam);     R:= wb.WorkSheets[1].Range['A9','A22'];     R.rows.Group(EmptyParam, EmptyParam,EmptyParam, EmptyParam); but Excel always shows a range A3 to A22. If i set the outline, it showss an indentation but does not have the + and - sign to collapse or expand.