How to Limit the Scroll Area in Excel (3 Methods)

Dataset Overview

We’ll use a data set containing World Cup Winners and Runner Ups to demonstrate these methods.

Dataset - how to limit scroll area in excel


Method 1 – Manually Limit Scroll Area

  • Open your Excel sheet.
  • Go to the Developer tab.
  • Click on Properties.

Limit Scroll area in Excel

  • In the ScrollArea box, specify the area you want to scroll (e.g., A1:E30).

  • This will keep that area active while fixing other areas.

Selecting for Scroll Area

Note: This is a short-term solution; changes will be lost when you close and reopen the file.


Method 2 – Hide Option from Context Menu

  • Select column F.
  • Press CTRL+SHIFT+Right Arrow to select all columns to the right of column E.

  • Right-click and choose Hide. This hides all columns from F onward.

Hide Cells in Excel

  • For rows, select row 31 and press CTRL+SHIFT+Down Arrow to select all rows from 31 downward.

  • Right-click and choose Hide.

Hide cells to limit scroll area

Your scroll area will now be limited to Column F and Row 30.


Method 3 – Use VBA Code

  • Go to the Developer tab and select Visual Basic.

VBA code to limit Scroll Area

  • Click on Module.

Enter the following code and close the window:

Sub controllScrollarea() 
Dim sk As Worksheet
Set sk = ActiveSheet 
sk.ScrollArea = "$A$1: $E$30"
End Sub

VBA code to limit scroll area in Excel

  • Customize the range (A1:E30) as needed.
  • Go to Macros, select the macro, and click Run.
  • You’ll now be constrained to scroll within the specified area.


Download Practice Workbook

You can download the practice workbook from here:


Related Articles


<< Go Back to Scrolling in Excel | Navigation in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!

Leave a Reply

Your email address will not be published. Required fields are marked *

Advanced Excel Exercises with Solutions PDF