Joe
Through VBA
Since the scrollarea method does not stick between sessions you will have to
reset it each time.
You may wish to place the code into a WorkBook_Open Sub in ThisWorkbook module
and specify which worksheet if only one sheet required.
Private Sub WorkBook_Open()
Sheets("YourSheet").ScrollArea = "C1:J30"
End Sub
Or alternative in the Thisworkbook module to limit scrollarea on all sheets.
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
With ActiveSheet
.ScrollArea = "C1:J30"
End With
End Sub
Gord
When you say, to set the scrollarea to data range. Is there any way to do
this apart from using Freeze panel option?
Gord Dibben MS Excel MVP