Fix Missing Grouped Row Buttons in Excel Online
Question details
The user needs expand and collapse buttons to appear for grouped rows in Excel Online.

- Product
- Excel Online, desktop Excel, openpyxl, and SharePoint
- Device & OS
- not provided
- Scenario
- Reports are generated with Python openpyxl, stored in SharePoint, and opened in Excel Online.
- Observed behavior
- The plus and minus outline buttons for grouped rows do not appear in Excel Online.
Confirm that the generated workbook contains row groups, then test it in current versions of desktop Excel and Excel Online. Check that you can edit and save the workbook in its SharePoint location.
Collapse and Save the Outline in Desktop Excel
Use desktop Excel to update the outline state before opening the workbook in Excel Online.
In SharePoint, open the workbook in the desktop Excel app rather than Excel Online.
On the grouped worksheet, select outline level 1 above the row headings. If the outline controls are not visible, check that the rows are grouped under Data > Outline.
Select File > Save, allow SharePoint to finish syncing, and reopen the workbook in Excel Online. Check whether the plus and minus buttons appear and expand the grouped rows.

Batch-Process Reports with Desktop Excel Automation
Use a VBScript to collapse and save the first worksheet's outline in multiple locally available XLSX reports.
Review Grouped Spreadsheets with WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and Microsoft Office format compatibility for an easier transition. It can help you review grouped spreadsheets, but it does not repair Excel Online's outline display.

Frequently Asked Questions
Why are the outline buttons missing in Excel Online?
Excel Online may not display outline controls correctly for some workbooks generated with openpyxl. Opening the workbook in desktop Excel, collapsing the outline, and saving it can help.
Will saving the workbook in desktop Excel keep the groups expanded?
The suggested workaround saves the outline at level 1, so grouped details start collapsed. Users can expand them with the plus buttons if the controls appear online.
Can I process many reports without opening each one manually?
On Windows with desktop Excel installed, a VBScript can open local or synced XLSX files, call Outline.ShowLevels on the grouped worksheet, and save each file. Test the results in Excel Online before relying on the process.
What if the grouped rows are on a different worksheet?
The sample script uses wb.Worksheets(1), the first worksheet. Change that reference to the appropriate worksheet index or name, then test the saved workbook in Excel Online.




