tap the header forrow 31to pick the entire row.

Press and hold theShiftandCtrlkeys on the keyboard.

Release all the keys.

Excel worksheet with one row selected

Hilary Allison / Lifewire

Right-click one of therow headingsto open thecontextual menu.

you’ve got the option to use the same process to hide any rows or columns you want.

Just go for the header or headers for the row or column, right-tap the header, and selectHide.

Excel with rows 31 and below selected

Right-hit the row headers and, from the menu, selectUnhide.

The hidden rows are restored.

Right-tap the selected column headers and, from the menu, chooseUnhide.

Excel with contextual menu displayed

The hidden columns are restored.

Changing the scroll area is a temporary measure; it resets each time the workbook is closed and reopened.

Opena blank Excel file.

Excel worksheet with limited rows displayed

At the bottom of the screen, right-click theSheet1sheet tab.

From the menu, chooseView Code.

TheVisual Basic for Applications (VBA)editor window opens.

Excel worksheet with some columns hidden

In the left rail, locate thePropertiessection.

UnderProperties,in the right column of theScrollArearow, nudge the empty box and typeA1:Z30.

SelectFile>Saveand keep your workbook as you normally would.

Excel with contextual menu displayed

SelectFile>Close and Return to Microsoft Excel.

To ensure your change is applied, perform this test.

In your worksheet, give a shot to scroll past row 30 or column Z.

Excel worksheet with hidden rows restored

To remove the restrictions, access VBA again and delete the ScrollArea range.

FAQ

Microsoft saysthat the maximum size of a single Excel spreadsheet is 1,048,576 rows by 16,384 columns.

The maximum row height is 409 points, and the maximum column width is 255 characters.

Excel with hidden columns restored

If you want to set a hard limit to columns or rows in an Excel spreadsheet (i.e.

Excel with tab menu displayed

MS Visual Basic for Applications in Excel

MS Visual Basic for Applications in Excel

MS Visual Basic for Applications in Excel

Excel spreadsheet with row and column limits applied