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!
Sourav Kundu
Sourav Kundu

Sourav Kundu, BSc, Naval Architecture & Marine Engineering, Bangladesh University of Engineering and Technology, is a dedicated technical content creator of the ExcelDemy project. He has a keen interest in Excel and he leverages his problem-solving skills to provide solutions on user interface with Excel. In his position as an Excel & VBA Content Developer at ExcelDemy, Sourav Kundu not only adeptly addresses challenging issues but also demonstrates enthusiasm and expertise in navigating complex situations. Apart from creating... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo