Skip to main content

limit Scroll Area on an Excel Worksheet

Sometimes, if you want to limit scroll area of an Excel worksheet, it means that the cells outside the scroll area cannot be selected. Are there any quick tricks to limit the scroll area on an Excel worksheet?

Limit Scroll Area by Entering the Range Address Manually

  1. Open the workbook.
  2. Activate the worksheet that you want to limit the scroll area.
  3. Activate the Visual Basic Editor by pressing ALT F11.
  4. Pressing F4 to show Properties Window.
  5. In the Properties Window list, enter a contiguous range address in the ScrollArea property box, in this example, we enter A1:F14, see screenshot:
    Limit Scroll Area
  6. Close this Properties window and back to worksheet, and you will be restricted to select the cells outside the range you are specified. In this example, you can't select cells outside the range A1:F14.
  7. If for some reason you need to cancel the scroll area limits, you just need to delete the range address from the ScrollArea property box in above step 5.

Limit Scroll Area use bulid-in command: Hide

For example, if you want to limit scroll area to A1:F14, you can hide the cells outside the range A1:F14, please do with the following steps:

  1. Select Column G, and then press CTRL SHIFT , then press Ctrl 0 or Right click and choose Hide
  2. Select Row 15, and then press CTRL SHIFT , then press Ctrl 9 or Right click and choose Hide.
  3. Now, you will be restricted to select the cells outside the range A1:F14, see screenshot:
    Hide Columns and Rows

If you want to Unhide the ranges, do with the following steps:

  1. Hold and click Column F, then move right the mouse, over the Column F, it will display 16379C (Excel 2010), then press CTRL SHIFT 0 or Right click and choose Unhide.
  2. Hold and click Row 14, then move down the mouse, over the Row 14, it will display 1048563R (Excel 2010), then press CTRL SHIFT 9 or Right click and choose Unhide.

Limit Scroll Area use Excel VBA

Excel’s ScrollArea property allows you to set the scroll area for a particular worksheet. For instance, this statement sets the scroll area on Sheet1 so the user cannot activate any cells outside of A1:G10.

Sub LimitScrollArea()
    Sheets("Sheet1").ScrollArea = "A1:G10"
End Sub

If for some reason you need to clear the scroll area limits, you can remove the restriction with this statement:

ActiveSheet.ScrollArea = ""

Leave a comment

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

Format your code: <pre><code class="language-vba">place your code here</code></pre>