Worksheet.ScrollArea property (Excel)

Returns or sets the range where scrolling is allowed, as an A1-style range reference. Cells outside the scroll area cannot be selected. Read/write String.



expression A variable that represents a Worksheet object.


Set this property to the empty string ("") to enable cell selection for the entire sheet.


This example sets the scroll area for worksheet one.

Worksheets(1).ScrollArea = "a1:f10"

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.